#AFBA2A#AFBA2A
#AFBA2A is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.6% C 0.158 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBA2A |
|---|---|
| RGB | rgb(175, 186, 42) |
| HSL | hsl(65, 63%, 45%) |
| HSV | hsv(65, 77%, 73%) |
| CMYK | cmyk(5.9%, 0%, 77.4%, 27.1%) |
| CIE-LAB | lab(72.49, -20.83, 65.84) |
| CIE-LCH | lch(72.49, 69.06, 107.56°) |
| OKLab | oklab(75.58% -0.0643 0.1439) |
| OKLCH | oklch(75.58% 0.158 114.1) |
| XYZ | xyz(35.6571, 44.3997, 8.8817) |
| Luminance | 0.4440 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 1.59
Mustard Green
#A8B504
ΔE00 2.06
Bile
#B5C306
ΔE00 3.11
Pea
#A4BF20
ΔE00 3.33
Baby Puke Green
#B6C406
ΔE00 3.34
Gross Green
#A0BF16
ΔE00 4.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBA2A #352ABA
analogous
#BA7D2A #AFBA2A #67BA2A
triadic
#AFBA2A #2AAFBA #BA2AAF
tetradic
#AFBA2A #2ABA7D #352ABA #BA2A67
square
#AFBA2A #2ABA7D #352ABA #BA2A67
split-complementary
#AFBA2A #2A67BA #7D2ABA
monochromatic
#515613 #80881F #AFBA2A #CCD64B #DAE27D
Accessibility & contrast
On white
2.13
#AFBA2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.88
#AFBA2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBA2A
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBA2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBA2A | 1.00 | 2.13 | 9.88 | 9.88 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B100
Deuteranopia (green-blind)
#C8B337
Tritanopia (blue-blind)
#BBAF9F
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #afba2a; /* rgb */ color: rgb(175, 186, 42); /* oklch */ color: oklch(75.6% 0.158 114.1);
Tailwind
colors: {
custom: {
50: '#cbce70',
500: '#afba2a',
950: '#000000',
},
}SCSS
$custom: #afba2a; $custom-light: #cbce70; $custom-dark: #000000;
JSON
{
"hex": "#afba2a",
"rgb": {
"r": 175,
"g": 186,
"b": 42
},
"hsl": {
"h": 64.583,
"s": 63.158,
"l": 44.706
},
"oklch": {
"l": 0.75576,
"c": 0.15762,
"h": 114.1
},
"luminance": 0.44399
}Semantic roles & 50–950 ramp
primary
#AFBA2A
secondary
#7C76CA
accent
#42E64E
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B