#898E12#898E12
#898E12 is a light, vivid yellow. Relative luminance 0.247; OKLCH L 62.2% C 0.133 H 112.2°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #898E12 |
|---|---|
| RGB | rgb(137, 142, 18) |
| HSL | hsl(62, 78%, 31%) |
| HSV | hsv(62, 87%, 56%) |
| CMYK | cmyk(3.5%, 0%, 87.3%, 44.3%) |
| CIE-LAB | lab(56.79, -15.86, 57.48) |
| CIE-LCH | lch(56.79, 59.63, 105.43°) |
| OKLab | oklab(62.21% -0.0504 0.1233) |
| OKLCH | oklch(62.21% 0.133 112.2) |
| XYZ | xyz(20.0994, 24.7086, 4.2826) |
| Luminance | 0.2471 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop Green
#8F9805
ΔE00 3.45
Baby Shit Green
#889717
ΔE00 3.48
Pea Soup
#929901
ΔE00 3.89
Olive
#808000
ΔE00 4.98
Swamp Green
#748500
ΔE00 5.14
Ugly Green
#7A9703
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#898E12 #17128E
analogous
#8E5512 #898E12 #4B8E12
triadic
#898E12 #12898E #8E1289
tetradic
#898E12 #128E55 #17128E #8E124B
square
#898E12 #128E55 #17128E #8E124B
split-complementary
#898E12 #124B8E #55128E
monochromatic
#202104 #55580B #898E12 #BDC419 #DEE535
Accessibility & contrast
On white
3.53
#898E12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.94
#898E12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #898E12
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##898E12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##898E12 | 1.00 | 3.53 | 5.94 | 5.94 |
| #FFFFFF | 3.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9A8A20
Tritanopia (blue-blind)
#938579
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #898e12; /* rgb */ color: rgb(137, 142, 18); /* oklch */ color: oklch(62.2% 0.133 112.2);
Tailwind
colors: {
custom: {
50: '#afae60',
500: '#898e12',
950: '#000000',
},
}SCSS
$custom: #898e12; $custom-light: #afae60; $custom-dark: #000000;
JSON
{
"hex": "#898e12",
"rgb": {
"r": 137,
"g": 142,
"b": 18
},
"hsl": {
"h": 62.419,
"s": 77.5,
"l": 31.373
},
"oklch": {
"l": 0.62208,
"c": 0.13318,
"h": 112.2
},
"luminance": 0.24708
}Semantic roles & 50–950 ramp
primary
#898E12
secondary
#3F3AC2
accent
#34F43C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A