#AFAD36#AFAD36

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

Color values

HEX#AFAD36
RGBrgb(175, 173, 54)
HSLhsl(59, 53%, 45%)
HSVhsv(59, 69%, 69%)
CMYKcmyk(0%, 1.1%, 69.1%, 31.4%)
CIE-LABlab(68.95, -13.70, 58.33)
CIE-LCHlch(68.95, 59.92, 103.21°)
OKLaboklab(72.76% -0.0433 0.1301)
OKLCHoklch(72.76% 0.137 108.4)
XYZxyz(33.2898, 39.2685, 9.3153)
Luminance0.3927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD36 #3638AF
analogous
#AF7036 #AFAD36 #75AF36
triadic
#AFAD36 #36AFAD #AD36AF
tetradic
#AFAD36 #36AF70 #3638AF #AF3675
square
#AFAD36 #36AF70 #3638AF #AF3675
split-complementary
#AFAD36 #3675AF #7036AF
monochromatic
#515119 #807F28 #AFAD36 #CBC957 #DAD886

Accessibility & contrast

On white

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

On black

8.85
#AFAD36 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD36
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD36#FFFFFF#000000##000000
##AFAD361.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA623
Deuteranopia (green-blind)
#BDAA3E
Tritanopia (blue-blind)
#BBA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad36;
/* rgb */ color: rgb(175, 173, 54);
/* oklch */ color: oklch(72.8% 0.137 108.4);
Tailwind
colors: {
  custom: {
    50: '#cac574',
    500: '#afad36',
    950: '#000000',
  },
}
SCSS
$custom: #afad36;
$custom-light: #cac574;
$custom-dark: #000000;
JSON
{
  "hex": "#afad36",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 54
  },
  "hsl": {
    "h": 59.008,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72758,
    "c": 0.13717,
    "h": 108.4
  },
  "luminance": 0.39267
}

Semantic roles & 50–950 ramp

primary
#AFAD36
secondary
#7D7FC3
accent
#4EDC4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAD36

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

Preview Lab → · Contrast checker → · Palette generator →

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