#AFAF30#AFAF30
#AFAF30 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.143 H 109.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF30 |
|---|---|
| RGB | rgb(175, 175, 48) |
| HSL | hsl(60, 57%, 44%) |
| HSV | hsv(60, 73%, 69%) |
| CMYK | cmyk(0%, 0%, 72.6%, 31.4%) |
| CIE-LAB | lab(69.46, -15.03, 61.05) |
| CIE-LCH | lch(69.46, 62.87, 103.83°) |
| OKLab | oklab(73.16% -0.0477 0.1348) |
| OKLCH | oklch(73.16% 0.143 109.5) |
| XYZ | xyz(33.5439, 39.9883, 8.7473) |
| Luminance | 0.3999 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.52
Vomit
#A2A415
ΔE00 3.54
Mustard Green
#A8B504
ΔE00 3.77
Snot
#ACBB0D
ΔE00 4.73
Puke Green
#9AAE07
ΔE00 4.88
Olive Yellow
#C2B709
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF30 #3030AF
analogous
#AF6F30 #AFAF30 #6FAF30
triadic
#AFAF30 #30AFAF #AF30AF
tetradic
#AFAF30 #30AF6F #3030AF #AF306F
square
#AFAF30 #30AF6F #3030AF #AF306F
split-complementary
#AFAF30 #306FAF #6F30AF
monochromatic
#4F4F16 #7F7F23 #AFAF30 #CECE4E #DCDC7E
Accessibility & contrast
On white
2.33
#AFAF30 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.00
#AFAF30 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF30
9.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF30 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF30 | 1.00 | 2.33 | 9.00 | 9.00 |
| #FFFFFF | 2.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA817
Deuteranopia (green-blind)
#BFAB3A
Tritanopia (blue-blind)
#BCA497
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #afaf30; /* rgb */ color: rgb(175, 175, 48); /* oklch */ color: oklch(73.2% 0.143 109.5);
Tailwind
colors: {
custom: {
50: '#cac672',
500: '#afaf30',
950: '#000000',
},
}SCSS
$custom: #afaf30; $custom-light: #cac672; $custom-dark: #000000;
JSON
{
"hex": "#afaf30",
"rgb": {
"r": 175,
"g": 175,
"b": 48
},
"hsl": {
"h": 60,
"s": 56.951,
"l": 43.725
},
"oklch": {
"l": 0.73158,
"c": 0.143,
"h": 109.5
},
"luminance": 0.39987
}Semantic roles & 50–950 ramp
primary
#AFAF30
secondary
#7676C4
accent
#48E048
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B