#AFA56E#AFA56E

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

Color values

HEX#AFA56E
RGBrgb(175, 165, 110)
HSLhsl(51, 29%, 56%)
HSVhsv(51, 37%, 69%)
CMYKcmyk(0%, 5.7%, 37.1%, 31.4%)
CIE-LABlab(67.39, -4.68, 29.84)
CIE-LCHlch(67.39, 30.20, 98.92°)
OKLaboklab(71.73% -0.0119 0.0736)
OKLCHoklch(71.73% 0.075 99.2)
XYZxyz(33.9493, 37.1510, 20.1313)
Luminance0.3715 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA56E #6E78AF
analogous
#AF846E #AFA56E #98AF6E
triadic
#AFA56E #6EAFA5 #A56EAF
tetradic
#AFA56E #6EAF84 #6E78AF #AF6E98
square
#AFA56E #6EAF84 #6E78AF #AF6E98
split-complementary
#AFA56E #6E98AF #846EAF
monochromatic
#69623A #908650 #AFA56E #C5BD95 #DBD6BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA56E#FFFFFF#000000##000000
##AFA56E1.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)
#AFA26A
Deuteranopia (green-blind)
#B2A670
Tritanopia (blue-blind)
#B89E97
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa56e;
/* rgb */ color: rgb(175, 165, 110);
/* oklch */ color: oklch(71.7% 0.075 99.2);
Tailwind
colors: {
  custom: {
    50: '#c8bf98',
    500: '#afa56e',
    950: '#000000',
  },
}
SCSS
$custom: #afa56e;
$custom-light: #c8bf98;
$custom-dark: #000000;
JSON
{
  "hex": "#afa56e",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 110
  },
  "hsl": {
    "h": 50.769,
    "s": 28.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.71726,
    "c": 0.07457,
    "h": 99.2
  },
  "luminance": 0.3715
}

Semantic roles & 50–950 ramp

primary
#AFA56E
secondary
#AFB3CA
accent
#72C563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA56E

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

Preview Lab → · Contrast checker → · Palette generator →

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