#AFBF32#AFBF32

#AFBF32 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.7% C 0.159 H 116.0°. Best body text is #000000 at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#AFBF32
RGBrgb(175, 191, 50)
HSLhsl(67, 59%, 47%)
HSVhsv(67, 74%, 75%)
CMYKcmyk(8.4%, 0%, 73.8%, 25.1%)
CIE-LABlab(73.94, -22.95, 64.62)
CIE-LCHlch(73.94, 68.57, 109.55°)
OKLaboklab(76.75% -0.0695 0.1427)
OKLCHoklch(76.75% 0.159 116)
XYZxyz(36.8867, 46.6064, 10.0698)
Luminance0.4661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF32 #4232BF
analogous
#BF8932 #AFBF32 #68BF32
triadic
#AFBF32 #32AFBF #BF32AF
tetradic
#AFBF32 #32BF89 #4232BF #BF3268
square
#AFBF32 #32BF89 #4232BF #BF3268
split-complementary
#AFBF32 #3268BF #8932BF
monochromatic
#565E19 #838E25 #AFBF32 #C6D45A #D7E18B

Accessibility & contrast

On white

2.03
#AFBF32 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.32
#AFBF32 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF32
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF32#FFFFFF#000000##000000
##AFBF321.002.0310.3210.32
#FFFFFF2.031.0021.0021.00
#00000010.3221.001.001.00
##00000010.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB514
Deuteranopia (green-blind)
#CBB73E
Tritanopia (blue-blind)
#BAB4A4
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf32;
/* rgb */ color: rgb(175, 191, 50);
/* oklch */ color: oklch(76.7% 0.159 116.0);
Tailwind
colors: {
  custom: {
    50: '#cad274',
    500: '#afbf32',
    950: '#000000',
  },
}
SCSS
$custom: #afbf32;
$custom-light: #cad274;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf32",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 50
  },
  "hsl": {
    "h": 66.809,
    "s": 58.506,
    "l": 47.255
  },
  "oklch": {
    "l": 0.76746,
    "c": 0.15875,
    "h": 116
  },
  "luminance": 0.46606
}

Semantic roles & 50–950 ramp

primary
#AFBF32
secondary
#8A82CB
accent
#46E258
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF32

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

Preview Lab → · Contrast checker → · Palette generator →

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