#AFAB39#AFAB39

#AFAB39 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.133 H 107.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFAB39
RGBrgb(175, 171, 57)
HSLhsl(58, 51%, 45%)
HSVhsv(58, 67%, 69%)
CMYKcmyk(0%, 2.3%, 67.4%, 31.4%)
CIE-LABlab(68.41, -12.50, 56.62)
CIE-LCHlch(68.41, 57.98, 102.45°)
OKLaboklab(72.34% -0.0396 0.127)
OKLCHoklch(72.34% 0.133 107.3)
XYZxyz(32.9818, 38.5363, 9.5710)
Luminance0.3854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB39 #393DAF
analogous
#AF7039 #AFAB39 #78AF39
triadic
#AFAB39 #39AFAB #AB39AF
tetradic
#AFAB39 #39AF70 #393DAF #AF3978
square
#AFAB39 #39AF70 #393DAF #AF3978
split-complementary
#AFAB39 #3978AF #7039AF
monochromatic
#53511B #817E2A #AFAB39 #CAC65B #D9D68A

Accessibility & contrast

On white

2.41
#AFAB39 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AFAB39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB39
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB39#FFFFFF#000000##000000
##AFAB391.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A429
Deuteranopia (green-blind)
#BBA941
Tritanopia (blue-blind)
#BBA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab39;
/* rgb */ color: rgb(175, 171, 57);
/* oklch */ color: oklch(72.3% 0.133 107.3);
Tailwind
colors: {
  custom: {
    50: '#cac376',
    500: '#afab39',
    950: '#000000',
  },
}
SCSS
$custom: #afab39;
$custom-light: #cac376;
$custom-dark: #000000;
JSON
{
  "hex": "#afab39",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 57
  },
  "hsl": {
    "h": 57.966,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.72341,
    "c": 0.13307,
    "h": 107.3
  },
  "luminance": 0.38535
}

Semantic roles & 50–950 ramp

primary
#AFAB39
secondary
#8183C3
accent
#52DA4D
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB39

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

Preview Lab → · Contrast checker → · Palette generator →

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