#AFAB59#AFAB59

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

Color values

HEX#AFAB59
RGBrgb(175, 171, 89)
HSLhsl(57, 35%, 52%)
HSVhsv(57, 49%, 69%)
CMYKcmyk(0%, 2.3%, 49.1%, 31.4%)
CIE-LABlab(68.72, -10.09, 42.38)
CIE-LCHlch(68.72, 43.56, 103.39°)
OKLaboklab(72.69% -0.0293 0.1006)
OKLCHoklch(72.69% 0.105 106.2)
XYZxyz(34.0461, 38.9620, 15.1762)
Luminance0.3896 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB59 #595DAF
analogous
#AF8059 #AFAB59 #88AF59
triadic
#AFAB59 #59AFAB #AB59AF
tetradic
#AFAB59 #59AF80 #595DAF #AF5988
square
#AFAB59 #59AF80 #595DAF #AF5988
split-complementary
#AFAB59 #5988AF #8059AF
monochromatic
#605D2E #898642 #AFAB59 #C3C082 #D7D5AC

Accessibility & contrast

On white

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

On black

8.79
#AFAB59 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB59
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB59#FFFFFF#000000##000000
##AFAB591.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afab59;
/* rgb */ color: rgb(175, 171, 89);
/* oklch */ color: oklch(72.7% 0.105 106.2);
Tailwind
colors: {
  custom: {
    50: '#c9c38a',
    500: '#afab59',
    950: '#000000',
  },
}
SCSS
$custom: #afab59;
$custom-light: #c9c38a;
$custom-dark: #000000;
JSON
{
  "hex": "#afab59",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 89
  },
  "hsl": {
    "h": 57.209,
    "s": 34.959,
    "l": 51.765
  },
  "oklch": {
    "l": 0.72687,
    "c": 0.10479,
    "h": 106.2
  },
  "luminance": 0.38961
}

Semantic roles & 50–950 ramp

primary
#AFAB59
secondary
#9FA1C5
accent
#62CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFAB59

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

Preview Lab → · Contrast checker → · Palette generator →

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