#AFA740#AFA740
#AFA740 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.124 H 104.9°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA740 |
|---|---|
| RGB | rgb(175, 167, 64) |
| HSL | hsl(56, 46%, 47%) |
| HSV | hsv(56, 63%, 69%) |
| CMYK | cmyk(0%, 4.6%, 63.4%, 31.4%) |
| CIE-LAB | lab(67.37, -9.98, 52.59) |
| CIE-LCH | lch(67.37, 53.53, 100.75°) |
| OKLab | oklab(71.53% -0.0318 0.1196) |
| OKLCH | oklch(71.53% 0.124 104.9) |
| XYZ | xyz(32.4245, 37.1227, 10.3069) |
| Luminance | 0.3712 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.40
Puke
#A5A502
ΔE00 4.69
Khaki (survey)
#AAA662
ΔE00 5.76
Muddy Yellow
#BFAC05
ΔE00 6.08
Darkkhaki
#BDB76B
ΔE00 6.37
Olive Yellow
#C2B709
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA740 #4048AF
analogous
#AF7040 #AFA740 #80AF40
triadic
#AFA740 #40AFA7 #A740AF
tetradic
#AFA740 #40AF70 #4048AF #AF4080
square
#AFA740 #40AF70 #4048AF #AF4080
split-complementary
#AFA740 #4080AF #7040AF
monochromatic
#55511F #827C30 #AFA740 #C7C065 #D7D292
Accessibility & contrast
On white
2.49
#AFA740 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.42
#AFA740 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA740
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA740 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA740 | 1.00 | 2.49 | 8.42 | 8.42 |
| #FFFFFF | 2.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B5A133
Deuteranopia (green-blind)
#B8A646
Tritanopia (blue-blind)
#BB9C91
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #afa740; /* rgb */ color: rgb(175, 167, 64); /* oklch */ color: oklch(71.5% 0.124 104.9);
Tailwind
colors: {
custom: {
50: '#cac07a',
500: '#afa740',
950: '#000000',
},
}SCSS
$custom: #afa740; $custom-light: #cac07a; $custom-dark: #000000;
JSON
{
"hex": "#afa740",
"rgb": {
"r": 175,
"g": 167,
"b": 64
},
"hsl": {
"h": 55.676,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.71526,
"c": 0.12379,
"h": 104.9
},
"luminance": 0.37122
}Semantic roles & 50–950 ramp
primary
#AFA740
secondary
#888CC3
accent
#5BD652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B