#AFB732#AFB732

#AFB732 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.0% C 0.150 H 112.9°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#AFB732
RGBrgb(175, 183, 50)
HSLhsl(64, 57%, 46%)
HSVhsv(64, 73%, 72%)
CMYKcmyk(4.4%, 0%, 72.7%, 28.2%)
CIE-LABlab(71.70, -18.98, 62.49)
CIE-LCHlch(71.70, 65.31, 106.90°)
OKLaboklab(74.95% -0.0585 0.1382)
OKLCHoklch(74.95% 0.15 112.9)
XYZxyz(35.1895, 43.2120, 9.5040)
Luminance0.4321 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB732 #3A32B7
analogous
#B77C32 #AFB732 #6CB732
triadic
#AFB732 #32AFB7 #B732AF
tetradic
#AFB732 #32B77C #3A32B7 #B7326C
square
#AFB732 #32B77C #3A32B7 #B7326C
split-complementary
#AFB732 #326CB7 #7C32B7
monochromatic
#535718 #818725 #AFB732 #C9D156 #D9DE86

Accessibility & contrast

On white

2.18
#AFB732 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#AFB732 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB732
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB732#FFFFFF#000000##000000
##AFB7321.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE18
Deuteranopia (green-blind)
#C5B13D
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb732;
/* rgb */ color: rgb(175, 183, 50);
/* oklch */ color: oklch(75.0% 0.150 112.9);
Tailwind
colors: {
  custom: {
    50: '#cacc73',
    500: '#afb732',
    950: '#000000',
  },
}
SCSS
$custom: #afb732;
$custom-light: #cacc73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb732",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 50
  },
  "hsl": {
    "h": 63.609,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74951,
    "c": 0.15009,
    "h": 112.9
  },
  "luminance": 0.43211
}

Semantic roles & 50–950 ramp

primary
#AFB732
secondary
#827DC7
accent
#47E051
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB732

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

Preview Lab → · Contrast checker → · Palette generator →

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