#AFB733#AFB733
#AFB733 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.0% C 0.149 H 113.0°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB733 |
|---|---|
| RGB | rgb(175, 183, 51) |
| HSL | hsl(64, 56%, 46%) |
| HSV | hsv(64, 72%, 72%) |
| CMYK | cmyk(4.4%, 0%, 72.1%, 28.2%) |
| CIE-LAB | lab(71.70, -18.93, 62.14) |
| CIE-LCH | lch(71.70, 64.96, 106.95°) |
| OKLab | oklab(74.96% -0.0583 0.1377) |
| OKLCH | oklch(74.96% 0.149 113) |
| XYZ | xyz(35.2113, 43.2207, 9.6189) |
| Luminance | 0.4322 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.56
Snot
#ACBB0D
ΔE00 2.73
Pea
#A4BF20
ΔE00 4.21
Bile
#B5C306
ΔE00 4.28
Puke Green
#9AAE07
ΔE00 4.29
Sick Green
#9DB92C
ΔE00 4.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB733 #3B33B7
analogous
#B77D33 #AFB733 #6DB733
triadic
#AFB733 #33AFB7 #B733AF
tetradic
#AFB733 #33B77D #3B33B7 #B7336D
square
#AFB733 #33B77D #3B33B7 #B7336D
split-complementary
#AFB733 #336DB7 #7D33B7
monochromatic
#535718 #818726 #AFB733 #C9D057 #D8DE87
Accessibility & contrast
On white
2.18
#AFB733 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.64
#AFB733 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB733
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB733 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB733 | 1.00 | 2.18 | 9.64 | 9.64 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AE1A
Deuteranopia (green-blind)
#C5B13D
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb733; /* rgb */ color: rgb(175, 183, 51); /* oklch */ color: oklch(75.0% 0.149 113.0);
Tailwind
colors: {
custom: {
50: '#cacc74',
500: '#afb733',
950: '#000000',
},
}SCSS
$custom: #afb733; $custom-light: #cacc74; $custom-dark: #000000;
JSON
{
"hex": "#afb733",
"rgb": {
"r": 175,
"g": 183,
"b": 51
},
"hsl": {
"h": 63.636,
"s": 56.41,
"l": 45.882
},
"oklch": {
"l": 0.74957,
"c": 0.14948,
"h": 113
},
"luminance": 0.4322
}Semantic roles & 50–950 ramp
primary
#AFB733
secondary
#837FC7
accent
#48E051
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B