#AFA531#AFA531

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

Color values

HEX#AFA531
RGBrgb(175, 165, 49)
HSLhsl(55, 56%, 44%)
HSVhsv(55, 72%, 69%)
CMYKcmyk(0%, 5.7%, 72%, 31.4%)
CIE-LABlab(66.71, -9.79, 58.03)
CIE-LCHlch(66.71, 58.85, 99.58°)
OKLaboklab(70.97% -0.0329 0.1286)
OKLCHoklch(70.97% 0.133 104.3)
XYZxyz(31.6900, 36.2472, 8.2323)
Luminance0.3625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA531 #313BAF
analogous
#AF6631 #AFA531 #7AAF31
triadic
#AFA531 #31AFA5 #A531AF
tetradic
#AFA531 #31AF66 #313BAF #AF317A
square
#AFA531 #31AF66 #313BAF #AF317A
split-complementary
#AFA531 #317AAF #6631AF
monochromatic
#4F4B16 #7F7824 #AFA531 #CEC44F #DBD47F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA531#FFFFFF#000000##000000
##AFA5311.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)
#B49F1D
Deuteranopia (green-blind)
#B7A539
Tritanopia (blue-blind)
#BC9A8E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa531;
/* rgb */ color: rgb(175, 165, 49);
/* oklch */ color: oklch(71.0% 0.133 104.3);
Tailwind
colors: {
  custom: {
    50: '#cabf71',
    500: '#afa531',
    950: '#000000',
  },
}
SCSS
$custom: #afa531;
$custom-light: #cabf71;
$custom-dark: #000000;
JSON
{
  "hex": "#afa531",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 49
  },
  "hsl": {
    "h": 55.238,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70965,
    "c": 0.13275,
    "h": 104.3
  },
  "luminance": 0.36246
}

Semantic roles & 50–950 ramp

primary
#AFA531
secondary
#787EC4
accent
#54E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA531

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

Preview Lab → · Contrast checker → · Palette generator →

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