#AFA56F#AFA56F

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

Color values

HEX#AFA56F
RGBrgb(175, 165, 111)
HSLhsl(51, 29%, 56%)
HSVhsv(51, 37%, 69%)
CMYKcmyk(0%, 5.7%, 36.6%, 31.4%)
CIE-LABlab(67.41, -4.56, 29.33)
CIE-LCHlch(67.41, 29.68, 98.84°)
OKLaboklab(71.74% -0.0114 0.0725)
OKLCHoklch(71.74% 0.073 99)
XYZxyz(34.0041, 37.1729, 20.4197)
Luminance0.3717 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA56F #6F79AF
analogous
#AF856F #AFA56F #99AF6F
triadic
#AFA56F #6FAFA5 #A56FAF
tetradic
#AFA56F #6FAF85 #6F79AF #AF6F99
square
#AFA56F #6FAF85 #6F79AF #AF6F99
split-complementary
#AFA56F #6F99AF #856FAF
monochromatic
#69623A #918650 #AFA56F #C5BE96 #DBD6BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA56F#FFFFFF#000000##000000
##AFA56F1.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)
#AFA26B
Deuteranopia (green-blind)
#B2A671
Tritanopia (blue-blind)
#B89E97
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa56f;
/* rgb */ color: rgb(175, 165, 111);
/* oklch */ color: oklch(71.7% 0.073 99.0);
Tailwind
colors: {
  custom: {
    50: '#c8bf99',
    500: '#afa56f',
    950: '#000000',
  },
}
SCSS
$custom: #afa56f;
$custom-light: #c8bf99;
$custom-dark: #000000;
JSON
{
  "hex": "#afa56f",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 111
  },
  "hsl": {
    "h": 50.625,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.71744,
    "c": 0.07337,
    "h": 99
  },
  "luminance": 0.37172
}

Semantic roles & 50–950 ramp

primary
#AFA56F
secondary
#B0B4CA
accent
#72C563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA56F

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

Preview Lab → · Contrast checker → · Palette generator →

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