#AFA932#AFA932

#AFA932 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.8% C 0.136 H 106.5°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#AFA932
RGBrgb(175, 169, 50)
HSLhsl(57, 56%, 44%)
HSVhsv(57, 71%, 69%)
CMYKcmyk(0%, 3.4%, 71.4%, 31.4%)
CIE-LABlab(67.81, -11.83, 58.73)
CIE-LCHlch(67.81, 59.91, 101.39°)
OKLaboklab(71.85% -0.0385 0.1303)
OKLCHoklch(71.85% 0.136 106.5)
XYZxyz(32.4442, 37.7213, 8.5889)
Luminance0.3772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA932 #3238AF
analogous
#AF6B32 #AFA932 #77AF32
triadic
#AFA932 #32AFA9 #A932AF
tetradic
#AFA932 #32AF6B #3238AF #AF3277
square
#AFA932 #32AF6B #3238AF #AF3277
split-complementary
#AFA932 #3277AF #6B32AF
monochromatic
#504D17 #7F7B24 #AFA932 #CDC751 #DBD781

Accessibility & contrast

On white

2.46
#AFA932 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#AFA932 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA932
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA932#FFFFFF#000000##000000
##AFA9321.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa932;
/* rgb */ color: rgb(175, 169, 50);
/* oklch */ color: oklch(71.8% 0.136 106.5);
Tailwind
colors: {
  custom: {
    50: '#cac272',
    500: '#afa932',
    950: '#000000',
  },
}
SCSS
$custom: #afa932;
$custom-light: #cac272;
$custom-dark: #000000;
JSON
{
  "hex": "#afa932",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 50
  },
  "hsl": {
    "h": 57.12,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71848,
    "c": 0.13586,
    "h": 106.5
  },
  "luminance": 0.3772
}

Semantic roles & 50–950 ramp

primary
#AFA932
secondary
#797CC4
accent
#50DF49
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA932

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

Preview Lab → · Contrast checker → · Palette generator →

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