#AFA532#AFA532

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

Color values

HEX#AFA532
RGBrgb(175, 165, 50)
HSLhsl(55, 56%, 44%)
HSVhsv(55, 71%, 69%)
CMYKcmyk(0%, 5.7%, 71.4%, 31.4%)
CIE-LABlab(66.71, -9.74, 57.66)
CIE-LCHlch(66.71, 58.48, 99.59°)
OKLaboklab(70.97% -0.0326 0.128)
OKLCHoklch(70.97% 0.132 104.3)
XYZxyz(31.7114, 36.2558, 8.3447)
Luminance0.3625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA532 #323CAF
analogous
#AF6732 #AFA532 #7BAF32
triadic
#AFA532 #32AFA5 #A532AF
tetradic
#AFA532 #32AF67 #323CAF #AF327B
square
#AFA532 #32AF67 #323CAF #AF327B
split-complementary
#AFA532 #327BAF #6732AF
monochromatic
#504B17 #7F7824 #AFA532 #CDC351 #DBD481

Accessibility & contrast

On white

2.55
#AFA532 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#AFA532 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA532
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA532#FFFFFF#000000##000000
##AFA5321.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1F
Deuteranopia (green-blind)
#B7A53A
Tritanopia (blue-blind)
#BC9A8E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa532;
/* rgb */ color: rgb(175, 165, 50);
/* oklch */ color: oklch(71.0% 0.132 104.3);
Tailwind
colors: {
  custom: {
    50: '#cabf72',
    500: '#afa532',
    950: '#000000',
  },
}
SCSS
$custom: #afa532;
$custom-light: #cabf72;
$custom-dark: #000000;
JSON
{
  "hex": "#afa532",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 50
  },
  "hsl": {
    "h": 55.2,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70972,
    "c": 0.1321,
    "h": 104.3
  },
  "luminance": 0.36255
}

Semantic roles & 50–950 ramp

primary
#AFA532
secondary
#797FC4
accent
#55DF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA532

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

Preview Lab → · Contrast checker → · Palette generator →

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