#8A8F12#8A8F12
#8A8F12 is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.5% C 0.134 H 112.2°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8A8F12 |
|---|---|
| RGB | rgb(138, 143, 18) |
| HSL | hsl(62, 78%, 32%) |
| HSV | hsv(62, 87%, 56%) |
| CMYK | cmyk(3.5%, 0%, 87.4%, 43.9%) |
| CIE-LAB | lab(57.17, -15.94, 57.83) |
| CIE-LCH | lch(57.17, 59.98, 105.41°) |
| OKLab | oklab(62.53% -0.0506 0.124) |
| OKLCH | oklch(62.53% 0.134 112.2) |
| XYZ | xyz(20.4136, 25.0924, 4.3401) |
| Luminance | 0.2509 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop Green
#8F9805
ΔE00 3.11
Baby Shit Green
#889717
ΔE00 3.26
Pea Soup
#929901
ΔE00 3.54
Olive
#808000
ΔE00 5.31
Swamp Green
#748500
ΔE00 5.43
Ugly Green
#7A9703
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A8F12 #17128F
analogous
#8F5612 #8A8F12 #4C8F12
triadic
#8A8F12 #128A8F #8F128A
tetradic
#8A8F12 #128F56 #17128F #8F124C
square
#8A8F12 #128F56 #17128F #8F124C
split-complementary
#8A8F12 #124C8F #56128F
monochromatic
#212204 #56590B #8A8F12 #BEC519 #DFE636
Accessibility & contrast
On white
3.49
#8A8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.02
#8A8F12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A8F12
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A8F12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A8F12 | 1.00 | 3.49 | 6.02 | 6.02 |
| #FFFFFF | 3.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#9B8B20
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #8a8f12; /* rgb */ color: rgb(138, 143, 18); /* oklch */ color: oklch(62.5% 0.134 112.2);
Tailwind
colors: {
custom: {
50: '#b0af60',
500: '#8a8f12',
950: '#000000',
},
}SCSS
$custom: #8a8f12; $custom-light: #b0af60; $custom-dark: #000000;
JSON
{
"hex": "#8a8f12",
"rgb": {
"r": 138,
"g": 143,
"b": 18
},
"hsl": {
"h": 62.4,
"s": 77.64,
"l": 31.569
},
"oklch": {
"l": 0.62529,
"c": 0.13392,
"h": 112.2
},
"luminance": 0.25092
}Semantic roles & 50–950 ramp
primary
#8A8F12
secondary
#3F3AC3
accent
#34F43B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A