#AFAD39#AFAD39

#AFAD39 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.8% C 0.135 H 108.4°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#AFAD39
RGBrgb(175, 173, 57)
HSLhsl(59, 51%, 45%)
HSVhsv(59, 67%, 69%)
CMYKcmyk(0%, 1.1%, 67.4%, 31.4%)
CIE-LABlab(68.97, -13.53, 57.18)
CIE-LCHlch(68.97, 58.76, 103.31°)
OKLaboklab(72.78% -0.0426 0.1282)
OKLCHoklch(72.78% 0.135 108.4)
XYZxyz(33.3624, 39.2975, 9.6979)
Luminance0.3930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD39 #393BAF
analogous
#AF7239 #AFAD39 #76AF39
triadic
#AFAD39 #39AFAD #AD39AF
tetradic
#AFAD39 #39AF72 #393BAF #AF3976
square
#AFAD39 #39AF72 #393BAF #AF3976
split-complementary
#AFAD39 #3976AF #7239AF
monochromatic
#53521B #817F2A #AFAD39 #CAC85B #D9D78A

Accessibility & contrast

On white

2.37
#AFAD39 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#AFAD39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD39
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD39#FFFFFF#000000##000000
##AFAD391.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA628
Deuteranopia (green-blind)
#BDAA41
Tritanopia (blue-blind)
#BBA296
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad39;
/* rgb */ color: rgb(175, 173, 57);
/* oklch */ color: oklch(72.8% 0.135 108.4);
Tailwind
colors: {
  custom: {
    50: '#cac576',
    500: '#afad39',
    950: '#000000',
  },
}
SCSS
$custom: #afad39;
$custom-light: #cac576;
$custom-dark: #000000;
JSON
{
  "hex": "#afad39",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 57
  },
  "hsl": {
    "h": 58.983,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.72781,
    "c": 0.13509,
    "h": 108.4
  },
  "luminance": 0.39297
}

Semantic roles & 50–950 ramp

primary
#AFAD39
secondary
#8182C3
accent
#50DA4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAD39

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

Preview Lab → · Contrast checker → · Palette generator →

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