#AFB532#AFB532

#AFB532 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.5% C 0.148 H 112.1°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#AFB532
RGBrgb(175, 181, 50)
HSLhsl(63, 57%, 45%)
HSVhsv(63, 72%, 71%)
CMYKcmyk(3.3%, 0%, 72.4%, 29%)
CIE-LABlab(71.14, -17.98, 61.95)
CIE-LCHlch(71.14, 64.51, 106.18°)
OKLaboklab(74.5% -0.0557 0.1371)
OKLCHoklch(74.5% 0.148 112.1)
XYZxyz(34.7799, 42.3928, 9.3675)
Luminance0.4239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB532 #3832B5
analogous
#B57932 #AFB532 #6DB532
triadic
#AFB532 #32AFB5 #B532AF
tetradic
#AFB532 #32B579 #3832B5 #B5326D
square
#AFB532 #32B579 #3832B5 #B5326D
split-complementary
#AFB532 #326DB5 #7932B5
monochromatic
#525518 #818525 #AFB532 #CAD054 #D9DD84

Accessibility & contrast

On white

2.22
#AFB532 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#AFB532 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB532
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB532#FFFFFF#000000##000000
##AFB5321.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD19
Deuteranopia (green-blind)
#C3B03C
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb532;
/* rgb */ color: rgb(175, 181, 50);
/* oklch */ color: oklch(74.5% 0.148 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb73',
    500: '#afb532',
    950: '#000000',
  },
}
SCSS
$custom: #afb532;
$custom-light: #cacb73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb532",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 50
  },
  "hsl": {
    "h": 62.748,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74504,
    "c": 0.14797,
    "h": 112.1
  },
  "luminance": 0.42392
}

Semantic roles & 50–950 ramp

primary
#AFB532
secondary
#807CC7
accent
#48E04F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB532

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

Preview Lab → · Contrast checker → · Palette generator →

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