#F5D162#F5D162
#F5D162 is a very light, vivid yellow. Relative luminance 0.659; OKLCH L 87.0% C 0.135 H 91.4°. Best body text is #000000 at 14.18:1 contrast (WCAG AA passes).
Color values
| HEX | #F5D162 |
|---|---|
| RGB | rgb(245, 209, 98) |
| HSL | hsl(45, 88%, 67%) |
| HSV | hsv(45, 60%, 96%) |
| CMYK | cmyk(0%, 14.7%, 60%, 3.9%) |
| CIE-LAB | lab(84.94, 0.07, 58.54) |
| CIE-LCH | lch(84.94, 58.54, 89.93°) |
| OKLab | oklab(87.03% -0.0033 0.1352) |
| OKLCH | oklch(87.03% 0.135 91.4) |
| XYZ | xyz(62.6641, 65.8986, 20.9719) |
| Luminance | 0.6590 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Mustard
#F7D560
ΔE00 1.30
Maize
#F4D054
ΔE00 1.58
Pale Gold
#FDDE6C
ΔE00 3.13
Light Gold
#FDDC5C
ΔE00 3.26
Wheat (survey)
#FBDD7E
ΔE00 3.65
Sandy
#F1DA7A
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F5D162 #6286F5
analogous
#F58862 #F5D162 #D0F562
triadic
#F5D162 #62F5D1 #D162F5
tetradic
#F5D162 #62F588 #6286F5 #F562D0
square
#F5D162 #62F588 #6286F5 #F562D0
split-complementary
#F5D162 #62D0F5 #8862F5
monochromatic
#CFA00D #F1C028 #F5D162 #F9E29C #FCF3D5
Accessibility & contrast
On white
1.48
#F5D162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.18
#F5D162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F5D162
14.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F5D162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F5D162 | 1.00 | 1.48 | 14.18 | 14.18 |
| #FFFFFF | 1.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E5CE57
Deuteranopia (green-blind)
#EED967
Tritanopia (blue-blind)
#FFC2B9
Achromatopsia (no color)
#D4D4D4
Design tokens & code
CSS
--color: #f5d162; /* rgb */ color: rgb(245, 209, 98); /* oklch */ color: oklch(87.0% 0.135 91.4);
Tailwind
colors: {
custom: {
50: '#fcde92',
500: '#f5d162',
950: '#000000',
},
}SCSS
$custom: #f5d162; $custom-light: #fcde92; $custom-dark: #000000;
JSON
{
"hex": "#f5d162",
"rgb": {
"r": 245,
"g": 209,
"b": 98
},
"hsl": {
"h": 45.306,
"s": 88.024,
"l": 67.255
},
"oklch": {
"l": 0.87034,
"c": 0.13523,
"h": 91.4
},
"luminance": 0.65895
}Semantic roles & 50–950 ramp
primary
#F5D162
secondary
#3056CB
accent
#39E501
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F