#AFB271#AFB271
#AFB271 is a light, moderate yellow. Relative luminance 0.421; OKLCH L 74.6% C 0.086 H 110.6°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB271 |
|---|---|
| RGB | rgb(175, 178, 113) |
| HSL | hsl(63, 30%, 57%) |
| HSV | hsv(63, 37%, 70%) |
| CMYK | cmyk(1.7%, 0%, 36.5%, 30.2%) |
| CIE-LAB | lab(70.97, -11.18, 32.90) |
| CIE-LCH | lch(70.97, 34.75, 108.78°) |
| OKLab | oklab(74.58% -0.0303 0.0808) |
| OKLCH | oklch(74.58% 0.086 110.6) |
| XYZ | xyz(36.5805, 42.1476, 21.8278) |
| Luminance | 0.4215 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.88
Darkkhaki
#BDB76B
ΔE00 3.91
Tan Green
#A9BE70
ΔE00 5.31
Light Olive
#ACBF69
ΔE00 5.58
Greenish Tan
#BCCB7A
ΔE00 6.98
Sand
#C2B280
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB271 #7471B2
analogous
#B29571 #AFB271 #8FB271
triadic
#AFB271 #71AFB2 #B271AF
tetradic
#AFB271 #71B295 #7471B2 #B2718F
square
#AFB271 #71B295 #7471B2 #B2718F
split-complementary
#AFB271 #718FB2 #9571B2
monochromatic
#6B6D3B #929551 #AFB271 #C5C899 #DCDDC0
Accessibility & contrast
On white
2.23
#AFB271 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.43
#AFB271 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB271
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB271 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB271 | 1.00 | 2.23 | 9.43 | 9.43 |
| #FFFFFF | 2.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCAD6C
Deuteranopia (green-blind)
#BCAF74
Tritanopia (blue-blind)
#B7ABA2
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb271; /* rgb */ color: rgb(175, 178, 113); /* oklch */ color: oklch(74.6% 0.086 110.6);
Tailwind
colors: {
custom: {
50: '#c8c99a',
500: '#afb271',
950: '#000000',
},
}SCSS
$custom: #afb271; $custom-light: #c8c99a; $custom-dark: #000000;
JSON
{
"hex": "#afb271",
"rgb": {
"r": 175,
"g": 178,
"b": 113
},
"hsl": {
"h": 62.769,
"s": 29.68,
"l": 57.059
},
"oklch": {
"l": 0.74583,
"c": 0.08633,
"h": 110.6
},
"luminance": 0.42147
}Semantic roles & 50–950 ramp
primary
#AFB271
secondary
#B3B2CD
accent
#62C666
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E