#AFA939#AFA939

#AFA939 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.9% C 0.131 H 106.3°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#AFA939
RGBrgb(175, 169, 57)
HSLhsl(57, 51%, 45%)
HSVhsv(57, 67%, 69%)
CMYKcmyk(0%, 3.4%, 67.4%, 31.4%)
CIE-LABlab(67.86, -11.46, 56.05)
CIE-LCHlch(67.86, 57.21, 101.55°)
OKLaboklab(71.9% -0.0367 0.1259)
OKLCHoklch(71.9% 0.131 106.3)
XYZxyz(32.6069, 37.7864, 9.4460)
Luminance0.3779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA939 #393FAF
analogous
#AF6E39 #AFA939 #7AAF39
triadic
#AFA939 #39AFA9 #A939AF
tetradic
#AFA939 #39AF6E #393FAF #AF397A
square
#AFA939 #39AF6E #393FAF #AF397A
split-complementary
#AFA939 #397AAF #6E39AF
monochromatic
#53501B #817C2A #AFA939 #CAC45B #D9D58A

Accessibility & contrast

On white

2.45
#AFA939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#AFA939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA939
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA939#FFFFFF#000000##000000
##AFA9391.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A329
Deuteranopia (green-blind)
#BAA740
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa939;
/* rgb */ color: rgb(175, 169, 57);
/* oklch */ color: oklch(71.9% 0.131 106.3);
Tailwind
colors: {
  custom: {
    50: '#cac276',
    500: '#afa939',
    950: '#000000',
  },
}
SCSS
$custom: #afa939;
$custom-light: #cac276;
$custom-dark: #000000;
JSON
{
  "hex": "#afa939",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 57
  },
  "hsl": {
    "h": 56.949,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71902,
    "c": 0.1311,
    "h": 106.3
  },
  "luminance": 0.37785
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA939

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

Preview Lab → · Contrast checker → · Palette generator →

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