#AFAB5A#AFAB5A

#AFAB5A is a light, moderate yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.104 H 106.2°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#AFAB5A
RGBrgb(175, 171, 90)
HSLhsl(57, 35%, 52%)
HSVhsv(57, 49%, 69%)
CMYKcmyk(0%, 2.3%, 48.6%, 31.4%)
CIE-LABlab(68.74, -10.00, 41.90)
CIE-LCHlch(68.74, 43.07, 103.42°)
OKLaboklab(72.7% -0.0289 0.0996)
OKLCHoklch(72.7% 0.104 106.2)
XYZxyz(34.0884, 38.9789, 15.3989)
Luminance0.3898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB5A #5A5EAF
analogous
#AF805A #AFAB5A #89AF5A
triadic
#AFAB5A #5AAFAB #AB5AAF
tetradic
#AFAB5A #5AAF80 #5A5EAF #AF5A89
square
#AFAB5A #5AAF80 #5A5EAF #AF5A89
split-complementary
#AFAB5A #5A89AF #805AAF
monochromatic
#605E2F #898643 #AFAB5A #C3C083 #D7D5AC

Accessibility & contrast

On white

2.39
#AFAB5A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#AFAB5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB5A
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB5A#FFFFFF#000000##000000
##AFAB5A1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A653
Deuteranopia (green-blind)
#B9A95E
Tritanopia (blue-blind)
#BAA298
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afab5a;
/* rgb */ color: rgb(175, 171, 90);
/* oklch */ color: oklch(72.7% 0.104 106.2);
Tailwind
colors: {
  custom: {
    50: '#c9c38a',
    500: '#afab5a',
    950: '#000000',
  },
}
SCSS
$custom: #afab5a;
$custom-light: #c9c38a;
$custom-dark: #000000;
JSON
{
  "hex": "#afab5a",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 90
  },
  "hsl": {
    "h": 57.176,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.72701,
    "c": 0.10375,
    "h": 106.2
  },
  "luminance": 0.38978
}

Semantic roles & 50–950 ramp

primary
#AFAB5A
secondary
#A0A2C5
accent
#62CB5D
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFAB5A

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

Preview Lab → · Contrast checker → · Palette generator →

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