#AFAC41#AFAC41

#AFAC41 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.6% C 0.128 H 107.7°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#AFAC41
RGBrgb(175, 172, 65)
HSLhsl(58, 46%, 47%)
HSVhsv(58, 63%, 69%)
CMYKcmyk(0%, 1.7%, 62.9%, 31.4%)
CIE-LABlab(68.75, -12.52, 53.63)
CIE-LCHlch(68.75, 55.07, 103.14°)
OKLaboklab(72.63% -0.0389 0.122)
OKLCHoklch(72.63% 0.128 107.7)
XYZxyz(33.3870, 39.0017, 10.7694)
Luminance0.3900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC41 #4144AF
analogous
#AF7541 #AFAC41 #7BAF41
triadic
#AFAC41 #41AFAC #AC41AF
tetradic
#AFAC41 #41AF75 #4144AF #AF417B
square
#AFAC41 #41AF75 #4144AF #AF417B
split-complementary
#AFAC41 #417BAF #7541AF
monochromatic
#565420 #828030 #AFAC41 #C6C467 #D7D593

Accessibility & contrast

On white

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

On black

8.80
#AFAC41 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC41
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC41#FFFFFF#000000##000000
##AFAC411.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA534
Deuteranopia (green-blind)
#BCAA47
Tritanopia (blue-blind)
#BBA196
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac41;
/* rgb */ color: rgb(175, 172, 65);
/* oklch */ color: oklch(72.6% 0.128 107.7);
Tailwind
colors: {
  custom: {
    50: '#cac47b',
    500: '#afac41',
    950: '#000000',
  },
}
SCSS
$custom: #afac41;
$custom-light: #cac47b;
$custom-dark: #000000;
JSON
{
  "hex": "#afac41",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 65
  },
  "hsl": {
    "h": 58.364,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72631,
    "c": 0.12803,
    "h": 107.7
  },
  "luminance": 0.39001
}

Semantic roles & 50–950 ramp

primary
#AFAC41
secondary
#898BC2
accent
#56D552
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAC41

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

Preview Lab → · Contrast checker → · Palette generator →

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