Moccasin color (#FFE4B5)
#FFE4B5 (Moccasin) is a very light orange colour. It is rgb(255, 228, 181) in RGB and hsl(38, 100%, 85%) in HSL. Text in black reads better on it: the contrast is 17.02:1 against black and 1.23:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#FFE4B5}:\quad R=\mathrm{FF}_{16}=255,\ G=\mathrm{E4}_{16}=228,\ B=\mathrm{B5}_{16}=181 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
38^\circ + 180^\circ = 218^\circ ;\Rightarrow; \mathrm{#B5D0FF} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#FFE4B5} = \mathrm{rgb}(255, 228, 181) \]
\[ \mathrm{#FFE4B5}:\quad R=\mathrm{FF}_{16}=255,\ G=\mathrm{E4}_{16}=228,\ B=\mathrm{B5}_{16}=181 \]
\[ H=38^\circ,\quad S=100\%,\quad L=85\% \]
\[ 38^\circ + 180^\circ = 218^\circ ;\Rightarrow; \mathrm{#B5D0FF} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 1.23:1\ \text{(on white)} \]Moccasin in every colour format
| Format | Value |
|---|---|
| HEX | #FFE4B5 |
| RGB | rgb(255, 228, 181) |
| RGB (percent) | rgb(100.0%, 89.4%, 71.0%) |
| HSL | hsl(38, 100%, 85%) |
| HSV / HSB | hsv(38, 29%, 100%) |
| CMYK | cmyk(0%, 11%, 29%, 0%) |
| Decimal | 16770229 |
| Description | very light orange |
| CSS name | moccasin |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 1.23:1 | fail | fail | fail | fail |
| Black text | 17.02:1 | pass | pass | pass | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #2A261E #554C3C #80725B #AA9879 #D5BE97 |
| This colour | #FFE4B5 |
| Tints (mixed with white) | #FFE9C1 #FFEDCE #FFF2DA #FFF6E6 #FFFBF3 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #F0E3B2 | 6 |
| Deuteranopia | #F7EAB6 | 6 |
| Tritanopia | #FFDBD7 | 22 |
| Grayscale | #E7E7E7 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Navajo white | #FFDEAD |
| Wheat | #F5DEB3 |
| Bisque | #FFE4C4 |
| Peach puff | #FFDAB9 |
Questions
What is the RGB value of #FFE4B5?
rgb(255, 228, 181): red 255, green 228, blue 181.
What is the HSL value of #FFE4B5?
hsl(38, 100%, 85%): a hue of 38°, 100% saturation and 85% lightness.
What is the complementary colour of #FFE4B5?
#B5D0FF, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #001B4A.
Should I use white or black text on #FFE4B5?
Black. White gives 1.23:1 and black 17.02:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #FFE4B5?
cmyk(0%, 11%, 29%, 0%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #FFE4B5 a named colour?
Yes: it is the CSS colour name "moccasin".