#AFB332#AFB332

#AFB332 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.146 H 111.3°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFB332
RGBrgb(175, 179, 50)
HSLhsl(62, 56%, 45%)
HSVhsv(62, 72%, 70%)
CMYKcmyk(2.2%, 0%, 72.1%, 29.8%)
CIE-LABlab(70.58, -16.97, 61.42)
CIE-LCHlch(70.58, 63.72, 105.44°)
OKLaboklab(74.06% -0.0529 0.1359)
OKLCHoklch(74.06% 0.146 111.3)
XYZxyz(34.3762, 41.5853, 9.2329)
Luminance0.4158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB332 #3632B3
analogous
#B37632 #AFB332 #6FB332
triadic
#AFB332 #32AFB3 #B332AF
tetradic
#AFB332 #32B376 #3632B3 #B3326F
square
#AFB332 #32B376 #3632B3 #B3326F
split-complementary
#AFB332 #326FB3 #7632B3
monochromatic
#515317 #808325 #AFB332 #CBCF53 #DADC83

Accessibility & contrast

On white

2.25
#AFB332 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFB332 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB332
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB332#FFFFFF#000000##000000
##AFB3321.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB1A
Deuteranopia (green-blind)
#C2AE3C
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb332;
/* rgb */ color: rgb(175, 179, 50);
/* oklch */ color: oklch(74.1% 0.146 111.3);
Tailwind
colors: {
  custom: {
    50: '#cac973',
    500: '#afb332',
    950: '#000000',
  },
}
SCSS
$custom: #afb332;
$custom-light: #cac973;
$custom-dark: #000000;
JSON
{
  "hex": "#afb332",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 50
  },
  "hsl": {
    "h": 61.86,
    "s": 56.332,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74059,
    "c": 0.14588,
    "h": 111.3
  },
  "luminance": 0.41584
}

Semantic roles & 50–950 ramp

primary
#AFB332
secondary
#7D7BC6
accent
#48E04D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB332

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

Preview Lab → · Contrast checker → · Palette generator →

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