#AFA732#AFA732

#AFA732 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.4% C 0.134 H 105.4°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA732
RGBrgb(175, 167, 50)
HSLhsl(56, 56%, 44%)
HSVhsv(56, 71%, 69%)
CMYKcmyk(0%, 4.6%, 71.4%, 31.4%)
CIE-LABlab(67.26, -10.79, 58.20)
CIE-LCHlch(67.26, 59.19, 100.50°)
OKLaboklab(71.41% -0.0356 0.1291)
OKLCHoklch(71.41% 0.134 105.4)
XYZxyz(32.0749, 36.9829, 8.4658)
Luminance0.3698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA732 #323AAF
analogous
#AF6932 #AFA732 #79AF32
triadic
#AFA732 #32AFA7 #A732AF
tetradic
#AFA732 #32AF69 #323AAF #AF3279
square
#AFA732 #32AF69 #323AAF #AF3279
split-complementary
#AFA732 #3279AF #6932AF
monochromatic
#504C17 #7F7A24 #AFA732 #CDC551 #DBD581

Accessibility & contrast

On white

2.50
#AFA732 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#AFA732 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA732
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA732#FFFFFF#000000##000000
##AFA7321.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11E
Deuteranopia (green-blind)
#B9A63A
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa732;
/* rgb */ color: rgb(175, 167, 50);
/* oklch */ color: oklch(71.4% 0.134 105.4);
Tailwind
colors: {
  custom: {
    50: '#cac072',
    500: '#afa732',
    950: '#000000',
  },
}
SCSS
$custom: #afa732;
$custom-light: #cac072;
$custom-dark: #000000;
JSON
{
  "hex": "#afa732",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 50
  },
  "hsl": {
    "h": 56.16,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71409,
    "c": 0.13396,
    "h": 105.4
  },
  "luminance": 0.36982
}

Semantic roles & 50–950 ramp

primary
#AFA732
secondary
#797EC4
accent
#53DF49
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA732

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

Preview Lab → · Contrast checker → · Palette generator →

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