#AFAB5E#AFAB5E

#AFAB5E is a light, moderate yellow. Relative luminance 0.390; OKLCH L 72.8% C 0.100 H 106.0°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#AFAB5E
RGBrgb(175, 171, 94)
HSLhsl(57, 34%, 53%)
HSVhsv(57, 46%, 69%)
CMYKcmyk(0%, 2.3%, 46.3%, 31.4%)
CIE-LABlab(68.79, -9.61, 39.95)
CIE-LCHlch(68.79, 41.09, 103.53°)
OKLaboklab(72.76% -0.0274 0.0957)
OKLCHoklch(72.76% 0.1 106)
XYZxyz(34.2632, 39.0488, 16.3198)
Luminance0.3905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB5E #5E62AF
analogous
#AF825E #AFAB5E #8AAF5E
triadic
#AFAB5E #5EAFAB #AB5EAF
tetradic
#AFAB5E #5EAF82 #5E62AF #AF5E8A
square
#AFAB5E #5EAF82 #5E62AF #AF5E8A
split-complementary
#AFAB5E #5E8AAF #825EAF
monochromatic
#626031 #8B8745 #AFAB5E #C3C087 #D8D6B0

Accessibility & contrast

On white

2.38
#AFAB5E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#AFAB5E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB5E
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB5E#FFFFFF#000000##000000
##AFAB5E1.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A658
Deuteranopia (green-blind)
#B9A962
Tritanopia (blue-blind)
#B9A299
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afab5e;
/* rgb */ color: rgb(175, 171, 94);
/* oklch */ color: oklch(72.8% 0.100 106.0);
Tailwind
colors: {
  custom: {
    50: '#c8c38d',
    500: '#afab5e',
    950: '#000000',
  },
}
SCSS
$custom: #afab5e;
$custom-light: #c8c38d;
$custom-dark: #000000;
JSON
{
  "hex": "#afab5e",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 94
  },
  "hsl": {
    "h": 57.037,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.72757,
    "c": 0.0995,
    "h": 106
  },
  "luminance": 0.39048
}

Semantic roles & 50–950 ramp

primary
#AFAB5E
secondary
#A3A5C6
accent
#63CA5E
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFAB5E

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

Preview Lab → · Contrast checker → · Palette generator →

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