#AFA268#AFA268
#AFA268 is a light, moderate yellow. Relative luminance 0.360; OKLCH L 71.0% C 0.079 H 97.1°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA268 |
|---|---|
| RGB | rgb(175, 162, 104) |
| HSL | hsl(49, 31%, 55%) |
| HSV | hsv(49, 41%, 69%) |
| CMYK | cmyk(0%, 7.4%, 40.6%, 31.4%) |
| CIE-LAB | lab(66.49, -3.77, 31.86) |
| CIE-LCH | lch(66.49, 32.09, 96.75°) |
| OKLab | oklab(70.98% -0.0097 0.078) |
| OKLCH | oklch(70.98% 0.079 97.1) |
| XYZ | xyz(33.0989, 35.9551, 18.2905) |
| Luminance | 0.3595 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.59
Sand
#C2B280
ΔE00 5.42
Sandy Brown
#C4A661
ΔE00 5.93
Dark Khaki
#9B8F55
ΔE00 6.15
Sandstone
#C9AE74
ΔE00 6.31
Dark Beige
#AC9362
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA268 #6875AF
analogous
#AF7F68 #AFA268 #99AF68
triadic
#AFA268 #68AFA2 #A268AF
tetradic
#AFA268 #68AF7F #6875AF #AF6899
square
#AFA268 #68AF7F #6875AF #AF6899
split-complementary
#AFA268 #6899AF #7F68AF
monochromatic
#665E36 #8E824B #AFA268 #C4BB90 #D9D3B8
Accessibility & contrast
On white
2.56
#AFA268 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.19
#AFA268 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA268
8.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA268 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA268 | 1.00 | 2.56 | 8.19 | 8.19 |
| #FFFFFF | 2.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD9F64
Deuteranopia (green-blind)
#B0A46A
Tritanopia (blue-blind)
#B99A93
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #afa268; /* rgb */ color: rgb(175, 162, 104); /* oklch */ color: oklch(71.0% 0.079 97.1);
Tailwind
colors: {
custom: {
50: '#c8bd94',
500: '#afa268',
950: '#000000',
},
}SCSS
$custom: #afa268; $custom-light: #c8bd94; $custom-dark: #000000;
JSON
{
"hex": "#afa268",
"rgb": {
"r": 175,
"g": 162,
"b": 104
},
"hsl": {
"h": 49.014,
"s": 30.736,
"l": 54.706
},
"oklch": {
"l": 0.7098,
"c": 0.07863,
"h": 97.1
},
"luminance": 0.35954
}Semantic roles & 50–950 ramp
primary
#AFA268
secondary
#AAB0C8
accent
#74C761
background
#FCFBF9
surface
#F8F6F1
border
#D1D0CB
text
#13120D
muted
#82817E