#AFAC36#AFAC36

#AFAC36 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.5% C 0.136 H 107.9°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#AFAC36
RGBrgb(175, 172, 54)
HSLhsl(59, 53%, 45%)
HSVhsv(59, 69%, 69%)
CMYKcmyk(0%, 1.7%, 69.1%, 31.4%)
CIE-LABlab(68.67, -13.18, 58.06)
CIE-LCHlch(68.67, 59.53, 102.79°)
OKLaboklab(72.54% -0.0419 0.1296)
OKLCHoklch(72.54% 0.136 107.9)
XYZxyz(33.0988, 38.8864, 9.2516)
Luminance0.3888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC36 #3639AF
analogous
#AF6F36 #AFAC36 #76AF36
triadic
#AFAC36 #36AFAC #AC36AF
tetradic
#AFAC36 #36AF6F #3639AF #AF3676
square
#AFAC36 #36AF6F #3639AF #AF3676
split-complementary
#AFAC36 #3676AF #6F36AF
monochromatic
#515019 #807E28 #AFAC36 #CBC857 #DAD886

Accessibility & contrast

On white

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

On black

8.78
#AFAC36 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC36
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC36#FFFFFF#000000##000000
##AFAC361.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA524
Deuteranopia (green-blind)
#BCA93E
Tritanopia (blue-blind)
#BCA195
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac36;
/* rgb */ color: rgb(175, 172, 54);
/* oklch */ color: oklch(72.5% 0.136 107.9);
Tailwind
colors: {
  custom: {
    50: '#cac474',
    500: '#afac36',
    950: '#000000',
  },
}
SCSS
$custom: #afac36;
$custom-light: #cac474;
$custom-dark: #000000;
JSON
{
  "hex": "#afac36",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 54
  },
  "hsl": {
    "h": 58.512,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72537,
    "c": 0.13616,
    "h": 107.9
  },
  "luminance": 0.38885
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFAC36

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

Preview Lab → · Contrast checker → · Palette generator →

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