#AFAC29#AFAC29

#AFAC29 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.144 H 108.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AFAC29
RGBrgb(175, 172, 41)
HSLhsl(59, 62%, 42%)
HSVhsv(59, 77%, 69%)
CMYKcmyk(0%, 1.7%, 76.6%, 31.4%)
CIE-LABlab(68.59, -13.79, 62.60)
CIE-LCHlch(68.59, 64.10, 102.42°)
OKLaboklab(72.45% -0.0448 0.1368)
OKLCHoklch(72.45% 0.144 108.1)
XYZxyz(32.8333, 38.7802, 7.8532)
Luminance0.3878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC29 #292CAF
analogous
#AF6929 #AFAC29 #6FAF29
triadic
#AFAC29 #29AFAC #AC29AF
tetradic
#AFAC29 #29AF69 #292CAF #AF296F
square
#AFAC29 #29AF69 #292CAF #AF296F
split-complementary
#AFAC29 #296FAF #6929AF
monochromatic
#4C4B12 #7D7B1D #AFAC29 #D3D042 #DEDC74

Accessibility & contrast

On white

2.40
#AFAC29 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#AFAC29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC29
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC29#FFFFFF#000000##000000
##AFAC291.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA506
Deuteranopia (green-blind)
#BDA934
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac29;
/* rgb */ color: rgb(175, 172, 41);
/* oklch */ color: oklch(72.5% 0.144 108.1);
Tailwind
colors: {
  custom: {
    50: '#cbc46e',
    500: '#afac29',
    950: '#000000',
  },
}
SCSS
$custom: #afac29;
$custom-light: #cbc46e;
$custom-dark: #000000;
JSON
{
  "hex": "#afac29",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 41
  },
  "hsl": {
    "h": 58.657,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72451,
    "c": 0.14397,
    "h": 108.1
  },
  "luminance": 0.38779
}

Semantic roles & 50–950 ramp

primary
#AFAC29
secondary
#6E70C6
accent
#46E543
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC29

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

Preview Lab → · Contrast checker → · Palette generator →

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