#AFAF26#AFAF26
#AFAF26 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.148 H 109.6°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF26 |
|---|---|
| RGB | rgb(175, 175, 38) |
| HSL | hsl(60, 64%, 42%) |
| HSV | hsv(60, 78%, 69%) |
| CMYK | cmyk(0%, 0%, 78.3%, 31.4%) |
| CIE-LAB | lab(69.41, -15.45, 64.26) |
| CIE-LCH | lch(69.41, 66.09, 103.51°) |
| OKLab | oklab(73.1% -0.0497 0.1398) |
| OKLCH | oklch(73.1% 0.148 109.6) |
| XYZ | xyz(33.3603, 39.9149, 7.7804) |
| Luminance | 0.3991 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.13
Mustard Green
#A8B504
ΔE00 3.37
Vomit
#A2A415
ΔE00 3.39
Snot
#ACBB0D
ΔE00 4.42
Olive Yellow
#C2B709
ΔE00 4.62
Puke Green
#9AAE07
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF26 #2626AF
analogous
#AF6B26 #AFAF26 #6BAF26
triadic
#AFAF26 #26AFAF #AF26AF
tetradic
#AFAF26 #26AF6B #2626AF #AF266B
square
#AFAF26 #26AF6B #2626AF #AF266B
split-complementary
#AFAF26 #266BAF #6B26AF
monochromatic
#4A4A10 #7D7D1B #AFAF26 #D5D53D #E0E070
Accessibility & contrast
On white
2.34
#AFAF26 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.98
#AFAF26 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF26
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF26 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF26 | 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)
#BFAB32
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #afaf26; /* rgb */ color: rgb(175, 175, 38); /* oklch */ color: oklch(73.1% 0.148 109.6);
Tailwind
colors: {
custom: {
50: '#cbc66d',
500: '#afaf26',
950: '#000000',
},
}SCSS
$custom: #afaf26; $custom-light: #cbc66d; $custom-dark: #000000;
JSON
{
"hex": "#afaf26",
"rgb": {
"r": 175,
"g": 175,
"b": 38
},
"hsl": {
"h": 60,
"s": 64.319,
"l": 41.765
},
"oklch": {
"l": 0.73099,
"c": 0.14838,
"h": 109.6
},
"luminance": 0.39914
}Semantic roles & 50–950 ramp
primary
#AFAF26
secondary
#6A6AC7
accent
#40E740
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A