#AFA76D#AFA76D

#AFA76D is a light, moderate yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.078 H 101.4°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#AFA76D
RGBrgb(175, 167, 109)
HSLhsl(53, 29%, 56%)
HSVhsv(53, 38%, 69%)
CMYKcmyk(0%, 4.6%, 37.7%, 31.4%)
CIE-LABlab(67.91, -5.87, 31.05)
CIE-LCHlch(67.91, 31.60, 100.70°)
OKLaboklab(72.14% -0.0154 0.0764)
OKLCHoklch(72.14% 0.078 101.4)
XYZxyz(34.2588, 37.8564, 19.9674)
Luminance0.3786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA76D #6D75AF
analogous
#AF866D #AFA76D #96AF6D
triadic
#AFA76D #6DAFA7 #A76DAF
tetradic
#AFA76D #6DAF86 #6D75AF #AF6D96
square
#AFA76D #6DAF86 #6D75AF #AF6D96
split-complementary
#AFA76D #6D96AF #866DAF
monochromatic
#686339 #90884F #AFA76D #C5BF95 #DAD7BC

Accessibility & contrast

On white

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

On black

8.57
#AFA76D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA76D
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA76D#FFFFFF#000000##000000
##AFA76D1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A369
Deuteranopia (green-blind)
#B4A76F
Tritanopia (blue-blind)
#B89F98
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa76d;
/* rgb */ color: rgb(175, 167, 109);
/* oklch */ color: oklch(72.1% 0.078 101.4);
Tailwind
colors: {
  custom: {
    50: '#c8c197',
    500: '#afa76d',
    950: '#000000',
  },
}
SCSS
$custom: #afa76d;
$custom-light: #c8c197;
$custom-dark: #000000;
JSON
{
  "hex": "#afa76d",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 109
  },
  "hsl": {
    "h": 52.727,
    "s": 29.204,
    "l": 55.686
  },
  "oklch": {
    "l": 0.72136,
    "c": 0.07792,
    "h": 101.4
  },
  "luminance": 0.37856
}

Semantic roles & 50–950 ramp

primary
#AFA76D
secondary
#AEB2CA
accent
#6EC562
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA76D

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

Preview Lab → · Contrast checker → · Palette generator →

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