#AFA56C#AFA56C

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

Color values

HEX#AFA56C
RGBrgb(175, 165, 108)
HSLhsl(51, 30%, 55%)
HSVhsv(51, 38%, 69%)
CMYKcmyk(0%, 5.7%, 38.3%, 31.4%)
CIE-LABlab(67.36, -4.92, 30.86)
CIE-LCHlch(67.36, 31.25, 99.05°)
OKLaboklab(71.69% -0.0127 0.0759)
OKLCHoklch(71.69% 0.077 99.5)
XYZxyz(33.8417, 37.1079, 19.5643)
Luminance0.3711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA56C #6C76AF
analogous
#AF836C #AFA56C #97AF6C
triadic
#AFA56C #6CAFA5 #A56CAF
tetradic
#AFA56C #6CAF83 #6C76AF #AF6C97
square
#AFA56C #6CAF83 #6C76AF #AF6C97
split-complementary
#AFA56C #6C97AF #836CAF
monochromatic
#686139 #90864E #AFA56C #C5BD94 #DAD6BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA56C#FFFFFF#000000##000000
##AFA56C1.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)
#AFA268
Deuteranopia (green-blind)
#B2A66E
Tritanopia (blue-blind)
#B99D97
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa56c;
/* rgb */ color: rgb(175, 165, 108);
/* oklch */ color: oklch(71.7% 0.077 99.5);
Tailwind
colors: {
  custom: {
    50: '#c8bf97',
    500: '#afa56c',
    950: '#000000',
  },
}
SCSS
$custom: #afa56c;
$custom-light: #c8bf97;
$custom-dark: #000000;
JSON
{
  "hex": "#afa56c",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 108
  },
  "hsl": {
    "h": 51.045,
    "s": 29.515,
    "l": 55.49
  },
  "oklch": {
    "l": 0.7169,
    "c": 0.07696,
    "h": 99.5
  },
  "luminance": 0.37107
}

Semantic roles & 50–950 ramp

primary
#AFA56C
secondary
#ADB2C9
accent
#71C662
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA56C

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

Preview Lab → · Contrast checker → · Palette generator →

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