#AFA56B#AFA56B

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

Color values

HEX#AFA56B
RGBrgb(175, 165, 107)
HSLhsl(51, 30%, 55%)
HSVhsv(51, 39%, 69%)
CMYKcmyk(0%, 5.7%, 38.9%, 31.4%)
CIE-LABlab(67.34, -5.03, 31.37)
CIE-LCHlch(67.34, 31.78, 99.11°)
OKLaboklab(71.67% -0.0131 0.077)
OKLCHoklch(71.67% 0.078 99.6)
XYZxyz(33.7888, 37.0867, 19.2856)
Luminance0.3709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA56B #6B75AF
analogous
#AF836B #AFA56B #97AF6B
triadic
#AFA56B #6BAFA5 #A56BAF
tetradic
#AFA56B #6BAF83 #6B75AF #AF6B97
square
#AFA56B #6BAF83 #6B75AF #AF6B97
split-complementary
#AFA56B #6B97AF #836BAF
monochromatic
#686138 #8F864D #AFA56B #C4BD93 #DAD5BA

Accessibility & contrast

On white

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

On black

8.42
#AFA56B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA56B
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA56B#FFFFFF#000000##000000
##AFA56B1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA267
Deuteranopia (green-blind)
#B2A66D
Tritanopia (blue-blind)
#B99D96
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa56b;
/* rgb */ color: rgb(175, 165, 107);
/* oklch */ color: oklch(71.7% 0.078 99.6);
Tailwind
colors: {
  custom: {
    50: '#c8bf96',
    500: '#afa56b',
    950: '#000000',
  },
}
SCSS
$custom: #afa56b;
$custom-light: #c8bf96;
$custom-dark: #000000;
JSON
{
  "hex": "#afa56b",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 107
  },
  "hsl": {
    "h": 51.176,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.71672,
    "c": 0.07816,
    "h": 99.6
  },
  "luminance": 0.37086
}

Semantic roles & 50–950 ramp

primary
#AFA56B
secondary
#ADB1C9
accent
#70C662
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA56B

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

Preview Lab → · Contrast checker → · Palette generator →

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