#AFAC33#AFAC33

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

Color values

HEX#AFAC33
RGBrgb(175, 172, 51)
HSLhsl(59, 55%, 44%)
HSVhsv(59, 71%, 69%)
CMYKcmyk(0%, 1.7%, 70.9%, 31.4%)
CIE-LABlab(68.65, -13.34, 59.18)
CIE-LCHlch(68.65, 60.66, 102.70°)
OKLaboklab(72.52% -0.0426 0.1314)
OKLCHoklch(72.52% 0.138 108)
XYZxyz(33.0305, 38.8591, 8.8920)
Luminance0.3886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC33 #3336AF
analogous
#AF6E33 #AFAC33 #74AF33
triadic
#AFAC33 #33AFAC #AC33AF
tetradic
#AFAC33 #33AF6E #3336AF #AF3374
square
#AFAC33 #33AF6E #3336AF #AF3374
split-complementary
#AFAC33 #3374AF #6E33AF
monochromatic
#504F17 #807D25 #AFAC33 #CDCA52 #DBD882

Accessibility & contrast

On white

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

On black

8.77
#AFAC33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC33
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC33#FFFFFF#000000##000000
##AFAC331.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51E
Deuteranopia (green-blind)
#BCA93C
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac33;
/* rgb */ color: rgb(175, 172, 51);
/* oklch */ color: oklch(72.5% 0.138 108.0);
Tailwind
colors: {
  custom: {
    50: '#cac473',
    500: '#afac33',
    950: '#000000',
  },
}
SCSS
$custom: #afac33;
$custom-light: #cac473;
$custom-dark: #000000;
JSON
{
  "hex": "#afac33",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 51
  },
  "hsl": {
    "h": 58.548,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.72515,
    "c": 0.13815,
    "h": 108
  },
  "luminance": 0.38858
}

Semantic roles & 50–950 ramp

primary
#AFAC33
secondary
#7A7CC4
accent
#4DDE4A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC33

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

Preview Lab → · Contrast checker → · Palette generator →

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