#AFC151#AFC151
#AFC151 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 77.5% C 0.139 H 117.4°. Best body text is #000000 at 10.57:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC151 |
|---|---|
| RGB | rgb(175, 193, 81) |
| HSL | hsl(70, 47%, 54%) |
| HSV | hsv(70, 58%, 76%) |
| CMYK | cmyk(9.3%, 0%, 58%, 24.3%) |
| CIE-LAB | lab(74.73, -21.97, 53.13) |
| CIE-LCH | lch(74.73, 57.49, 112.47°) |
| OKLab | oklab(77.46% -0.0638 0.123) |
| OKLCH | oklch(77.46% 0.139 117.4) |
| XYZ | xyz(38.2350, 47.8483, 15.0044) |
| Luminance | 0.4785 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Olive Green
#A4BE5C
ΔE00 3.28
Light Olive
#ACBF69
ΔE00 3.99
Booger
#9BB53C
ΔE00 4.15
Sick Green
#9DB92C
ΔE00 4.22
Pea
#A4BF20
ΔE00 4.42
Gross Green
#A0BF16
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC151 #6351C1
analogous
#C19B51 #AFC151 #77C151
triadic
#AFC151 #51AFC1 #C151AF
tetradic
#AFC151 #51C19B #6351C1 #C15177
square
#AFC151 #51C19B #6351C1 #C15177
split-complementary
#AFC151 #5177C1 #9B51C1
monochromatic
#647028 #8D9D38 #AFC151 #C4D17E #D8E1AB
Accessibility & contrast
On white
1.99
#AFC151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.57
#AFC151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC151
10.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC151 | 1.00 | 1.99 | 10.57 | 10.57 |
| #FFFFFF | 1.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.57 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.57 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CDB845
Deuteranopia (green-blind)
#CBB958
Tritanopia (blue-blind)
#B9B7A9
Achromatopsia (no color)
#B8B8B8
Design tokens & code
CSS
--color: #afc151; /* rgb */ color: rgb(175, 193, 81); /* oklch */ color: oklch(77.5% 0.139 117.4);
Tailwind
colors: {
custom: {
50: '#c9d386',
500: '#afc151',
950: '#000000',
},
}SCSS
$custom: #afc151; $custom-light: #c9d386; $custom-dark: #000000;
JSON
{
"hex": "#afc151",
"rgb": {
"r": 175,
"g": 193,
"b": 81
},
"hsl": {
"h": 69.643,
"s": 47.458,
"l": 53.725
},
"oklch": {
"l": 0.77456,
"c": 0.13859,
"h": 117.4
},
"luminance": 0.47848
}Semantic roles & 50–950 ramp
primary
#AFC151
secondary
#A79FCF
accent
#51D766
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C