#AFA56A#AFA56A

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

Color values

HEX#AFA56A
RGBrgb(175, 165, 106)
HSLhsl(51, 30%, 55%)
HSVhsv(51, 39%, 69%)
CMYKcmyk(0%, 5.7%, 39.4%, 31.4%)
CIE-LABlab(67.33, -5.15, 31.88)
CIE-LCHlch(67.33, 32.30, 99.17°)
OKLaboklab(71.66% -0.0135 0.0782)
OKLCHoklch(71.66% 0.079 99.8)
XYZxyz(33.7365, 37.0658, 19.0102)
Luminance0.3706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA56A #6A74AF
analogous
#AF826A #AFA56A #97AF6A
triadic
#AFA56A #6AAFA5 #A56AAF
tetradic
#AFA56A #6AAF82 #6A74AF #AF6A97
square
#AFA56A #6AAF82 #6A74AF #AF6A97
split-complementary
#AFA56A #6A97AF #826AAF
monochromatic
#676037 #8F854D #AFA56A #C4BD92 #DAD5BA

Accessibility & contrast

On white

2.50
#AFA56A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#AFA56A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA56A
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA56A#FFFFFF#000000##000000
##AFA56A1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa56a;
/* rgb */ color: rgb(175, 165, 106);
/* oklch */ color: oklch(71.7% 0.079 99.8);
Tailwind
colors: {
  custom: {
    50: '#c8bf95',
    500: '#afa56a',
    950: '#000000',
  },
}
SCSS
$custom: #afa56a;
$custom-light: #c8bf95;
$custom-dark: #000000;
JSON
{
  "hex": "#afa56a",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 106
  },
  "hsl": {
    "h": 51.304,
    "s": 30.131,
    "l": 55.098
  },
  "oklch": {
    "l": 0.71655,
    "c": 0.07933,
    "h": 99.8
  },
  "luminance": 0.37065
}

Semantic roles & 50–950 ramp

primary
#AFA56A
secondary
#ACB0C9
accent
#70C661
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA56A

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

Preview Lab → · Contrast checker → · Palette generator →

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