#AFA76F#AFA76F

#AFA76F is a light, moderate yellow. Relative luminance 0.379; OKLCH L 72.2% C 0.076 H 101.1°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#AFA76F
RGBrgb(175, 167, 111)
HSLhsl(53, 29%, 56%)
HSVhsv(53, 37%, 69%)
CMYKcmyk(0%, 4.6%, 36.6%, 31.4%)
CIE-LABlab(67.95, -5.63, 30.03)
CIE-LCHlch(67.95, 30.55, 100.62°)
OKLaboklab(72.17% -0.0145 0.0741)
OKLCHoklch(72.17% 0.076 101.1)
XYZxyz(34.3677, 37.9000, 20.5409)
Luminance0.3790 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA76F #6F77AF
analogous
#AF876F #AFA76F #97AF6F
triadic
#AFA76F #6FAFA7 #A76FAF
tetradic
#AFA76F #6FAF87 #6F77AF #AF6F97
square
#AFA76F #6FAF87 #6F77AF #AF6F97
split-complementary
#AFA76F #6F97AF #876FAF
monochromatic
#69633A #918850 #AFA76F #C5BF96 #DBD7BE

Accessibility & contrast

On white

2.45
#AFA76F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#AFA76F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA76F
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA76F#FFFFFF#000000##000000
##AFA76F1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A36B
Deuteranopia (green-blind)
#B4A771
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa76f;
/* rgb */ color: rgb(175, 167, 111);
/* oklch */ color: oklch(72.2% 0.076 101.1);
Tailwind
colors: {
  custom: {
    50: '#c8c199',
    500: '#afa76f',
    950: '#000000',
  },
}
SCSS
$custom: #afa76f;
$custom-light: #c8c199;
$custom-dark: #000000;
JSON
{
  "hex": "#afa76f",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 111
  },
  "hsl": {
    "h": 52.5,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.72172,
    "c": 0.07552,
    "h": 101.1
  },
  "luminance": 0.37899
}

Semantic roles & 50–950 ramp

primary
#AFA76F
secondary
#B0B3CA
accent
#6FC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA76F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFA76F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva