#AFB340#AFB340
#AFB340 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.2% C 0.136 H 111.2°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB340 |
|---|---|
| RGB | rgb(175, 179, 64) |
| HSL | hsl(62, 47%, 48%) |
| HSV | hsv(62, 64%, 70%) |
| CMYK | cmyk(2.2%, 0%, 64.2%, 29.8%) |
| CIE-LAB | lab(70.68, -16.18, 56.09) |
| CIE-LCH | lch(70.68, 58.38, 106.09°) |
| OKLab | oklab(74.17% -0.0493 0.127) |
| OKLCH | oklch(74.17% 0.136 111.2) |
| XYZ | xyz(34.7257, 41.7252, 11.0740) |
| Luminance | 0.4172 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 4.17
Snot
#ACBB0D
ΔE00 4.67
Vomit
#A2A415
ΔE00 5.03
Puke Green
#9AAE07
ΔE00 5.03
Booger
#9BB53C
ΔE00 5.11
Puke
#A5A502
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB340 #4440B3
analogous
#B37D40 #AFB340 #75B340
triadic
#AFB340 #40AFB3 #B340AF
tetradic
#AFB340 #40B37D #4440B3 #B34075
square
#AFB340 #40B37D #4440B3 #B34075
split-complementary
#AFB340 #4075B3 #7D40B3
monochromatic
#575920 #838630 #AFB340 #C5C967 #D7D994
Accessibility & contrast
On white
2.25
#AFB340 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.34
#AFB340 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB340
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB340 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB340 | 1.00 | 2.25 | 9.34 | 9.34 |
| #FFFFFF | 2.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AB31
Deuteranopia (green-blind)
#C1AE48
Tritanopia (blue-blind)
#BBA89B
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #afb340; /* rgb */ color: rgb(175, 179, 64); /* oklch */ color: oklch(74.2% 0.136 111.2);
Tailwind
colors: {
custom: {
50: '#cac97b',
500: '#afb340',
950: '#000000',
},
}SCSS
$custom: #afb340; $custom-light: #cac97b; $custom-dark: #000000;
JSON
{
"hex": "#afb340",
"rgb": {
"r": 175,
"g": 179,
"b": 64
},
"hsl": {
"h": 62.087,
"s": 47.325,
"l": 47.647
},
"oklch": {
"l": 0.74167,
"c": 0.13627,
"h": 111.2
},
"luminance": 0.41724
}Semantic roles & 50–950 ramp
primary
#AFB340
secondary
#8C8AC4
accent
#51D756
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C