#AFA539#AFA539

#AFA539 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.0% C 0.127 H 104.0°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#AFA539
RGBrgb(175, 165, 57)
HSLhsl(55, 51%, 45%)
HSVhsv(55, 67%, 69%)
CMYKcmyk(0%, 5.7%, 67.4%, 31.4%)
CIE-LABlab(66.76, -9.36, 54.93)
CIE-LCHlch(66.76, 55.72, 99.67°)
OKLaboklab(71.03% -0.0308 0.1235)
OKLCHoklch(71.03% 0.127 104)
XYZxyz(31.8741, 36.3209, 9.2018)
Luminance0.3632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA539 #3943AF
analogous
#AF6A39 #AFA539 #7EAF39
triadic
#AFA539 #39AFA5 #A539AF
tetradic
#AFA539 #39AF6A #3943AF #AF397E
square
#AFA539 #39AF6A #3943AF #AF397E
split-complementary
#AFA539 #397EAF #6A39AF
monochromatic
#534E1B #81792A #AFA539 #CAC05B #D9D28A

Accessibility & contrast

On white

2.54
#AFA539 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#AFA539 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA539
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA539#FFFFFF#000000##000000
##AFA5391.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F2A
Deuteranopia (green-blind)
#B7A540
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa539;
/* rgb */ color: rgb(175, 165, 57);
/* oklch */ color: oklch(71.0% 0.127 104.0);
Tailwind
colors: {
  custom: {
    50: '#cabf75',
    500: '#afa539',
    950: '#000000',
  },
}
SCSS
$custom: #afa539;
$custom-light: #cabf75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa539",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 57
  },
  "hsl": {
    "h": 54.915,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71027,
    "c": 0.12725,
    "h": 104
  },
  "luminance": 0.3632
}

Semantic roles & 50–950 ramp

primary
#AFA539
secondary
#8186C3
accent
#59DA4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA539

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

Preview Lab → · Contrast checker → · Palette generator →

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