#AFA56D#AFA56D

#AFA56D is a light, moderate yellow. Relative luminance 0.371; OKLCH L 71.7% C 0.076 H 99.3°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#AFA56D
RGBrgb(175, 165, 109)
HSLhsl(51, 29%, 56%)
HSVhsv(51, 38%, 69%)
CMYKcmyk(0%, 5.7%, 37.7%, 31.4%)
CIE-LABlab(67.37, -4.80, 30.35)
CIE-LCHlch(67.37, 30.73, 98.99°)
OKLaboklab(71.71% -0.0123 0.0748)
OKLCHoklch(71.71% 0.076 99.3)
XYZxyz(33.8952, 37.1293, 19.8462)
Luminance0.3713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA56D #6D77AF
analogous
#AF846D #AFA56D #98AF6D
triadic
#AFA56D #6DAFA5 #A56DAF
tetradic
#AFA56D #6DAF84 #6D77AF #AF6D98
square
#AFA56D #6DAF84 #6D77AF #AF6D98
split-complementary
#AFA56D #6D98AF #846DAF
monochromatic
#686139 #90864F #AFA56D #C5BD95 #DAD6BC

Accessibility & contrast

On white

2.49
#AFA56D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#AFA56D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA56D
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA56D#FFFFFF#000000##000000
##AFA56D1.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA269
Deuteranopia (green-blind)
#B2A66F
Tritanopia (blue-blind)
#B89D97
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa56d;
/* rgb */ color: rgb(175, 165, 109);
/* oklch */ color: oklch(71.7% 0.076 99.3);
Tailwind
colors: {
  custom: {
    50: '#c8bf97',
    500: '#afa56d',
    950: '#000000',
  },
}
SCSS
$custom: #afa56d;
$custom-light: #c8bf97;
$custom-dark: #000000;
JSON
{
  "hex": "#afa56d",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 109
  },
  "hsl": {
    "h": 50.909,
    "s": 29.204,
    "l": 55.686
  },
  "oklch": {
    "l": 0.71708,
    "c": 0.07577,
    "h": 99.3
  },
  "luminance": 0.37128
}

Semantic roles & 50–950 ramp

primary
#AFA56D
secondary
#AEB2CA
accent
#71C562
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA56D

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

Preview Lab → · Contrast checker → · Palette generator →

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