#AFAC39#AFAC39

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

Color values

HEX#AFAC39
RGBrgb(175, 172, 57)
HSLhsl(58, 51%, 45%)
HSVhsv(58, 67%, 69%)
CMYKcmyk(0%, 1.7%, 67.4%, 31.4%)
CIE-LABlab(68.69, -13.01, 56.90)
CIE-LCHlch(68.69, 58.37, 102.88°)
OKLaboklab(72.56% -0.0411 0.1276)
OKLCHoklch(72.56% 0.134 107.9)
XYZxyz(33.1714, 38.9155, 9.6342)
Luminance0.3891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC39 #393CAF
analogous
#AF7139 #AFAC39 #77AF39
triadic
#AFAC39 #39AFAC #AC39AF
tetradic
#AFAC39 #39AF71 #393CAF #AF3977
square
#AFAC39 #39AF71 #393CAF #AF3977
split-complementary
#AFAC39 #3977AF #7139AF
monochromatic
#53511B #817F2A #AFAC39 #CAC75B #D9D78A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC39#FFFFFF#000000##000000
##AFAC391.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)
#BAA528
Deuteranopia (green-blind)
#BCAA41
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac39;
/* rgb */ color: rgb(175, 172, 57);
/* oklch */ color: oklch(72.6% 0.134 107.9);
Tailwind
colors: {
  custom: {
    50: '#cac476',
    500: '#afac39',
    950: '#000000',
  },
}
SCSS
$custom: #afac39;
$custom-light: #cac476;
$custom-dark: #000000;
JSON
{
  "hex": "#afac39",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 57
  },
  "hsl": {
    "h": 58.475,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.72561,
    "c": 0.13408,
    "h": 107.9
  },
  "luminance": 0.38914
}

Semantic roles & 50–950 ramp

primary
#AFAC39
secondary
#8182C3
accent
#51DA4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC39

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

Preview Lab → · Contrast checker → · Palette generator →

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