#AFC831#AFC831
#AFC831 is a light, vivid yellow. Relative luminance 0.506; OKLCH L 78.8% C 0.169 H 118.9°. Best body text is #000000 at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC831 |
|---|---|
| RGB | rgb(175, 200, 49) |
| HSL | hsl(70, 61%, 49%) |
| HSV | hsv(70, 76%, 78%) |
| CMYK | cmyk(12.5%, 0%, 75.5%, 21.6%) |
| CIE-LAB | lab(76.46, -27.36, 67.32) |
| CIE-LCH | lch(76.46, 72.67, 112.11°) |
| OKLab | oklab(78.78% -0.0818 0.1483) |
| OKLCH | oklch(78.78% 0.169 118.9) |
| XYZ | xyz(38.8887, 50.6446, 10.6318) |
| Luminance | 0.5064 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.52
Green Yellow
#B5CE08
ΔE00 2.86
Gross Green
#A0BF16
ΔE00 2.95
Snot Green
#9DC100
ΔE00 3.25
Baby Puke Green
#B6C406
ΔE00 3.52
Bile
#B5C306
ΔE00 3.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC831 #4A31C8
analogous
#C89631 #AFC831 #64C831
triadic
#AFC831 #31AFC8 #C831AF
tetradic
#AFC831 #31C896 #4A31C8 #C83164
square
#AFC831 #31C896 #4A31C8 #C83164
split-complementary
#AFC831 #3164C8 #9631C8
monochromatic
#596619 #849725 #AFC831 #C4D85F #D6E490
Accessibility & contrast
On white
1.89
#AFC831 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.13
#AFC831 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC831
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC831 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC831 | 1.00 | 1.89 | 11.13 | 11.13 |
| #FFFFFF | 1.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5BD09
Deuteranopia (green-blind)
#D2BD3F
Tritanopia (blue-blind)
#BABDAC
Achromatopsia (no color)
#BDBDBD
Design tokens & code
CSS
--color: #afc831; /* rgb */ color: rgb(175, 200, 49); /* oklch */ color: oklch(78.8% 0.169 118.9);
Tailwind
colors: {
custom: {
50: '#cbd875',
500: '#afc831',
950: '#000000',
},
}SCSS
$custom: #afc831; $custom-light: #cbd875; $custom-dark: #000000;
JSON
{
"hex": "#afc831",
"rgb": {
"r": 175,
"g": 200,
"b": 49
},
"hsl": {
"h": 69.934,
"s": 60.643,
"l": 48.824
},
"oklch": {
"l": 0.78776,
"c": 0.16931,
"h": 118.9
},
"luminance": 0.50644
}Semantic roles & 50–950 ramp
primary
#AFC831
secondary
#382D70
accent
#44E45E
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D