#AFAC40#AFAC40

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

Color values

HEX#AFAC40
RGBrgb(175, 172, 64)
HSLhsl(58, 46%, 47%)
HSVhsv(58, 63%, 69%)
CMYKcmyk(0%, 1.7%, 63.4%, 31.4%)
CIE-LABlab(68.74, -12.59, 54.05)
CIE-LCHlch(68.74, 55.50, 103.11°)
OKLaboklab(72.62% -0.0391 0.1227)
OKLCHoklch(72.62% 0.129 107.7)
XYZxyz(33.3582, 38.9902, 10.6182)
Luminance0.3899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC40 #4043AF
analogous
#AF7440 #AFAC40 #7BAF40
triadic
#AFAC40 #40AFAC #AC40AF
tetradic
#AFAC40 #40AF74 #4043AF #AF407B
square
#AFAC40 #40AF74 #4043AF #AF407B
split-complementary
#AFAC40 #407BAF #7440AF
monochromatic
#55541F #828030 #AFAC40 #C7C465 #D7D592

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC40#FFFFFF#000000##000000
##AFAC401.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)
#BAA532
Deuteranopia (green-blind)
#BCAA47
Tritanopia (blue-blind)
#BBA196
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac40;
/* rgb */ color: rgb(175, 172, 64);
/* oklch */ color: oklch(72.6% 0.129 107.7);
Tailwind
colors: {
  custom: {
    50: '#cac47a',
    500: '#afac40',
    950: '#000000',
  },
}
SCSS
$custom: #afac40;
$custom-light: #cac47a;
$custom-dark: #000000;
JSON
{
  "hex": "#afac40",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 58.378,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.72621,
    "c": 0.12882,
    "h": 107.7
  },
  "luminance": 0.38989
}

Semantic roles & 50–950 ramp

primary
#AFAC40
secondary
#888AC3
accent
#55D652
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC40

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

Preview Lab → · Contrast checker → · Palette generator →

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