#AFAA39#AFAA39

#AFAA39 is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.1% C 0.132 H 106.8°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#AFAA39
RGBrgb(175, 170, 57)
HSLhsl(57, 51%, 45%)
HSVhsv(57, 67%, 69%)
CMYKcmyk(0%, 2.9%, 67.4%, 31.4%)
CIE-LABlab(68.14, -11.98, 56.33)
CIE-LCHlch(68.14, 57.59, 102.00°)
OKLaboklab(72.12% -0.0382 0.1264)
OKLCHoklch(72.12% 0.132 106.8)
XYZxyz(32.7936, 38.1599, 9.5083)
Luminance0.3816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA39 #393EAF
analogous
#AF6F39 #AFAA39 #79AF39
triadic
#AFAA39 #39AFAA #AA39AF
tetradic
#AFAA39 #39AF6F #393EAF #AF3979
square
#AFAA39 #39AF6F #393EAF #AF3979
split-complementary
#AFAA39 #3979AF #6F39AF
monochromatic
#53501B #817D2A #AFAA39 #CAC55B #D9D58A

Accessibility & contrast

On white

2.43
#AFAA39 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#AFAA39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA39
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA39#FFFFFF#000000##000000
##AFAA391.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A429
Deuteranopia (green-blind)
#BBA840
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa39;
/* rgb */ color: rgb(175, 170, 57);
/* oklch */ color: oklch(72.1% 0.132 106.8);
Tailwind
colors: {
  custom: {
    50: '#cac376',
    500: '#afaa39',
    950: '#000000',
  },
}
SCSS
$custom: #afaa39;
$custom-light: #cac376;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa39",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 57
  },
  "hsl": {
    "h": 57.458,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.72121,
    "c": 0.13208,
    "h": 106.8
  },
  "luminance": 0.38159
}

Semantic roles & 50–950 ramp

primary
#AFAA39
secondary
#8184C3
accent
#53DA4D
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAA39

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

Preview Lab → · Contrast checker → · Palette generator →

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