#AFAC59#AFAC59

#AFAC59 is a light, moderate yellow. Relative luminance 0.393; OKLCH L 72.9% C 0.106 H 106.9°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#AFAC59
RGBrgb(175, 172, 89)
HSLhsl(58, 35%, 52%)
HSVhsv(58, 49%, 69%)
CMYKcmyk(0%, 1.7%, 49.1%, 31.4%)
CIE-LABlab(69.00, -10.62, 42.71)
CIE-LCHlch(69.00, 44.01, 103.96°)
OKLaboklab(72.91% -0.0308 0.1013)
OKLCHoklch(72.91% 0.106 106.9)
XYZxyz(34.2357, 39.3412, 15.2394)
Luminance0.3934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC59 #595CAF
analogous
#AF8159 #AFAC59 #87AF59
triadic
#AFAC59 #59AFAC #AC59AF
tetradic
#AFAC59 #59AF81 #595CAF #AF5987
square
#AFAC59 #59AF81 #595CAF #AF5987
split-complementary
#AFAC59 #5987AF #8159AF
monochromatic
#605E2E #898642 #AFAC59 #C3C182 #D7D5AC

Accessibility & contrast

On white

2.37
#AFAC59 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#AFAC59 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC59
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC59#FFFFFF#000000##000000
##AFAC591.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A652
Deuteranopia (green-blind)
#BAAA5D
Tritanopia (blue-blind)
#BAA399
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac59;
/* rgb */ color: rgb(175, 172, 89);
/* oklch */ color: oklch(72.9% 0.106 106.9);
Tailwind
colors: {
  custom: {
    50: '#c9c48a',
    500: '#afac59',
    950: '#000000',
  },
}
SCSS
$custom: #afac59;
$custom-light: #c9c48a;
$custom-dark: #000000;
JSON
{
  "hex": "#afac59",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 89
  },
  "hsl": {
    "h": 57.907,
    "s": 34.959,
    "l": 51.765
  },
  "oklch": {
    "l": 0.72905,
    "c": 0.1059,
    "h": 106.9
  },
  "luminance": 0.3934
}

Semantic roles & 50–950 ramp

primary
#AFAC59
secondary
#9FA0C5
accent
#61CB5D
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFAC59

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

Preview Lab → · Contrast checker → · Palette generator →

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