#AFC231#AFC231
#AFC231 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.4% C 0.163 H 117.0°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC231 |
|---|---|
| RGB | rgb(175, 194, 49) |
| HSL | hsl(68, 60%, 48%) |
| HSV | hsv(68, 75%, 76%) |
| CMYK | cmyk(9.8%, 0%, 74.7%, 23.9%) |
| CIE-LAB | lab(74.77, -24.46, 65.74) |
| CIE-LCH | lch(74.77, 70.14, 110.41°) |
| OKLab | oklab(77.42% -0.0738 0.1449) |
| OKLCH | oklch(77.42% 0.163 117) |
| XYZ | xyz(37.5263, 47.9198, 10.1777) |
| Luminance | 0.4792 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.01
Snot
#ACBB0D
ΔE00 2.67
Gross Green
#A0BF16
ΔE00 2.76
Bile
#B5C306
ΔE00 2.87
Baby Puke Green
#B6C406
ΔE00 2.98
Snot Green
#9DC100
ΔE00 3.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC231 #4431C2
analogous
#C28C31 #AFC231 #66C231
triadic
#AFC231 #31AFC2 #C231AF
tetradic
#AFC231 #31C28C #4431C2 #C23166
square
#AFC231 #31C28C #4431C2 #C23166
split-complementary
#AFC231 #3166C2 #8C31C2
monochromatic
#576018 #839125 #AFC231 #C5D65B #D7E28C
Accessibility & contrast
On white
1.98
#AFC231 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.58
#AFC231 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC231
10.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC231 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC231 | 1.00 | 1.98 | 10.58 | 10.58 |
| #FFFFFF | 1.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFB70F
Deuteranopia (green-blind)
#CEB93E
Tritanopia (blue-blind)
#BAB7A7
Achromatopsia (no color)
#B8B8B8
Design tokens & code
CSS
--color: #afc231; /* rgb */ color: rgb(175, 194, 49); /* oklch */ color: oklch(77.4% 0.163 117.0);
Tailwind
colors: {
custom: {
50: '#cad474',
500: '#afc231',
950: '#000000',
},
}SCSS
$custom: #afc231; $custom-light: #cad474; $custom-dark: #000000;
JSON
{
"hex": "#afc231",
"rgb": {
"r": 175,
"g": 194,
"b": 49
},
"hsl": {
"h": 67.862,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.77417,
"c": 0.16262,
"h": 117
},
"luminance": 0.47919
}Semantic roles & 50–950 ramp
primary
#AFC231
secondary
#8C83CC
accent
#45E35A
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B