#AFAF25#AFAF25
#AFAF25 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.149 H 109.6°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF25 |
|---|---|
| RGB | rgb(175, 175, 37) |
| HSL | hsl(60, 65%, 42%) |
| HSV | hsv(60, 79%, 69%) |
| CMYK | cmyk(0%, 0%, 78.9%, 31.4%) |
| CIE-LAB | lab(69.40, -15.48, 64.55) |
| CIE-LCH | lch(69.40, 66.39, 103.49°) |
| OKLab | oklab(73.09% -0.0499 0.1403) |
| OKLCH | oklch(73.09% 0.149 109.6) |
| XYZ | xyz(33.3444, 39.9085, 7.6966) |
| Luminance | 0.3991 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.10
Mustard Green
#A8B504
ΔE00 3.34
Vomit
#A2A415
ΔE00 3.38
Snot
#ACBB0D
ΔE00 4.40
Olive Yellow
#C2B709
ΔE00 4.58
Puke Green
#9AAE07
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF25 #2525AF
analogous
#AF6A25 #AFAF25 #6AAF25
triadic
#AFAF25 #25AFAF #AF25AF
tetradic
#AFAF25 #25AF6A #2525AF #AF256A
square
#AFAF25 #25AF6A #2525AF #AF256A
split-complementary
#AFAF25 #256AAF #6A25AF
monochromatic
#4A4A10 #7C7C1A #AFAF25 #D6D63C #E0E06E
Accessibility & contrast
On white
2.34
#AFAF25 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.98
#AFAF25 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF25
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF25 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF25 | 1.00 | 2.34 | 8.98 | 8.98 |
| #FFFFFF | 2.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BFAB31
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #afaf25; /* rgb */ color: rgb(175, 175, 37); /* oklch */ color: oklch(73.1% 0.149 109.6);
Tailwind
colors: {
custom: {
50: '#cbc66d',
500: '#afaf25',
950: '#000000',
},
}SCSS
$custom: #afaf25; $custom-light: #cbc66d; $custom-dark: #000000;
JSON
{
"hex": "#afaf25",
"rgb": {
"r": 175,
"g": 175,
"b": 37
},
"hsl": {
"h": 60,
"s": 65.094,
"l": 41.569
},
"oklch": {
"l": 0.73094,
"c": 0.14886,
"h": 109.6
},
"luminance": 0.39907
}Semantic roles & 50–950 ramp
primary
#AFAF25
secondary
#6969C7
accent
#40E840
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A