#AFC732#AFC732

#AFC732 is a light, vivid yellow. Relative luminance 0.502; OKLCH L 78.6% C 0.168 H 118.6°. Best body text is #000000 at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#AFC732
RGBrgb(175, 199, 50)
HSLhsl(70, 60%, 49%)
HSVhsv(70, 75%, 78%)
CMYKcmyk(12.1%, 0%, 74.9%, 22%)
CIE-LABlab(76.19, -26.83, 66.74)
CIE-LCHlch(76.19, 71.93, 111.90°)
OKLaboklab(78.55% -0.0802 0.1472)
OKLCHoklch(78.55% 0.168 118.6)
XYZxyz(38.6792, 50.1914, 10.6673)
Luminance0.5019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC732 #4A32C7
analogous
#C79532 #AFC732 #65C732
triadic
#AFC732 #32AFC7 #C732AF
tetradic
#AFC732 #32C795 #4A32C7 #C73265
square
#AFC732 #32C795 #4A32C7 #C73265
split-complementary
#AFC732 #3265C7 #9532C7
monochromatic
#596519 #849626 #AFC732 #C4D75F #D6E390

Accessibility & contrast

On white

1.90
#AFC732 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.04
#AFC732 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC732
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC732#FFFFFF#000000##000000
##AFC7321.001.9011.0411.04
#FFFFFF1.901.0021.0021.00
#00000011.0421.001.001.00
##00000011.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC0E
Deuteranopia (green-blind)
#D2BC3F
Tritanopia (blue-blind)
#BABCAB
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #afc732;
/* rgb */ color: rgb(175, 199, 50);
/* oklch */ color: oklch(78.6% 0.168 118.6);
Tailwind
colors: {
  custom: {
    50: '#cbd875',
    500: '#afc732',
    950: '#000000',
  },
}
SCSS
$custom: #afc732;
$custom-light: #cbd875;
$custom-dark: #000000;
JSON
{
  "hex": "#afc732",
  "rgb": {
    "r": 175,
    "g": 199,
    "b": 50
  },
  "hsl": {
    "h": 69.664,
    "s": 59.839,
    "l": 48.824
  },
  "oklch": {
    "l": 0.78555,
    "c": 0.16765,
    "h": 118.6
  },
  "luminance": 0.50191
}

Semantic roles & 50–950 ramp

primary
#AFC732
secondary
#382E70
accent
#45E35E
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #AFC732

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

Preview Lab → · Contrast checker → · Palette generator →

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