#AFB932#AFB932

#AFB932 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.4% C 0.152 H 113.7°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#AFB932
RGBrgb(175, 185, 50)
HSLhsl(64, 57%, 46%)
HSVhsv(64, 73%, 73%)
CMYKcmyk(5.4%, 0%, 73%, 27.5%)
CIE-LABlab(72.26, -19.98, 63.02)
CIE-LCHlch(72.26, 66.11, 107.59°)
OKLaboklab(75.4% -0.0613 0.1393)
OKLCHoklch(75.4% 0.152 113.7)
XYZxyz(35.6049, 44.0429, 9.6425)
Luminance0.4404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB932 #3C32B9
analogous
#B97F32 #AFB932 #6BB932
triadic
#AFB932 #32AFB9 #B932AF
tetradic
#AFB932 #32B97F #3C32B9 #B9326B
square
#AFB932 #32B97F #3C32B9 #B9326B
split-complementary
#AFB932 #326BB9 #7F32B9
monochromatic
#545918 #818925 #AFB932 #C8D257 #D8DF87

Accessibility & contrast

On white

2.14
#AFB932 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.81
#AFB932 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB932
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB932#FFFFFF#000000##000000
##AFB9321.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B017
Deuteranopia (green-blind)
#C6B23D
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb932;
/* rgb */ color: rgb(175, 185, 50);
/* oklch */ color: oklch(75.4% 0.152 113.7);
Tailwind
colors: {
  custom: {
    50: '#cacd74',
    500: '#afb932',
    950: '#000000',
  },
}
SCSS
$custom: #afb932;
$custom-light: #cacd74;
$custom-dark: #000000;
JSON
{
  "hex": "#afb932",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 50
  },
  "hsl": {
    "h": 64.444,
    "s": 57.447,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75398,
    "c": 0.15223,
    "h": 113.7
  },
  "luminance": 0.44042
}

Semantic roles & 50–950 ramp

primary
#AFB932
secondary
#847FC8
accent
#47E152
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB932

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

Preview Lab → · Contrast checker → · Palette generator →

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