#AFAA59#AFAA59

#AFAA59 is a light, moderate yellow. Relative luminance 0.386; OKLCH L 72.5% C 0.104 H 105.5°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#AFAA59
RGBrgb(175, 170, 89)
HSLhsl(57, 35%, 52%)
HSVhsv(57, 49%, 69%)
CMYKcmyk(0%, 2.9%, 49.1%, 31.4%)
CIE-LABlab(68.45, -9.57, 42.05)
CIE-LCHlch(68.45, 43.12, 102.82°)
OKLaboklab(72.47% -0.0278 0.0999)
OKLCHoklch(72.47% 0.104 105.5)
XYZxyz(33.8579, 38.5856, 15.1135)
Luminance0.3859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA59 #595EAF
analogous
#AF7F59 #AFAA59 #89AF59
triadic
#AFAA59 #59AFAA #AA59AF
tetradic
#AFAA59 #59AF7F #595EAF #AF5989
square
#AFAA59 #59AF7F #595EAF #AF5989
split-complementary
#AFAA59 #5989AF #7F59AF
monochromatic
#605D2E #898542 #AFAA59 #C3BF82 #D7D4AC

Accessibility & contrast

On white

2.41
#AFAA59 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#AFAA59 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA59
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA59#FFFFFF#000000##000000
##AFAA591.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A552
Deuteranopia (green-blind)
#B8A95D
Tritanopia (blue-blind)
#BAA197
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa59;
/* rgb */ color: rgb(175, 170, 89);
/* oklch */ color: oklch(72.5% 0.104 105.5);
Tailwind
colors: {
  custom: {
    50: '#c9c38a',
    500: '#afaa59',
    950: '#000000',
  },
}
SCSS
$custom: #afaa59;
$custom-light: #c9c38a;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa59",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 89
  },
  "hsl": {
    "h": 56.512,
    "s": 34.959,
    "l": 51.765
  },
  "oklch": {
    "l": 0.72469,
    "c": 0.10368,
    "h": 105.5
  },
  "luminance": 0.38585
}

Semantic roles & 50–950 ramp

primary
#AFAA59
secondary
#9FA1C5
accent
#63CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFAA59

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

Preview Lab → · Contrast checker → · Palette generator →

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