#AFC431#AFC431

#AFC431 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 77.9% C 0.165 H 117.6°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#AFC431
RGBrgb(175, 196, 49)
HSLhsl(69, 60%, 48%)
HSVhsv(69, 75%, 77%)
CMYKcmyk(10.7%, 0%, 75%, 23.1%)
CIE-LABlab(75.34, -25.43, 66.27)
CIE-LCHlch(75.34, 70.98, 111.00°)
OKLaboklab(77.87% -0.0765 0.146)
OKLCHoklch(77.87% 0.165 117.6)
XYZxyz(37.9744, 48.8160, 10.3271)
Luminance0.4882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC431 #4631C4
analogous
#C48F31 #AFC431 #66C431
triadic
#AFC431 #31AFC4 #C431AF
tetradic
#AFC431 #31C48F #4631C4 #C43166
square
#AFC431 #31C48F #4631C4 #C43166
split-complementary
#AFC431 #3166C4 #8F31C4
monochromatic
#586219 #839325 #AFC431 #C5D65C #D6E28D

Accessibility & contrast

On white

1.95
#AFC431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#AFC431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC431
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC431#FFFFFF#000000##000000
##AFC4311.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B90D
Deuteranopia (green-blind)
#CFBA3E
Tritanopia (blue-blind)
#BAB9A8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #afc431;
/* rgb */ color: rgb(175, 196, 49);
/* oklch */ color: oklch(77.9% 0.165 117.6);
Tailwind
colors: {
  custom: {
    50: '#cbd574',
    500: '#afc431',
    950: '#000000',
  },
}
SCSS
$custom: #afc431;
$custom-light: #cbd574;
$custom-dark: #000000;
JSON
{
  "hex": "#afc431",
  "rgb": {
    "r": 175,
    "g": 196,
    "b": 49
  },
  "hsl": {
    "h": 68.571,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.77869,
    "c": 0.16485,
    "h": 117.6
  },
  "luminance": 0.48816
}

Semantic roles & 50–950 ramp

primary
#AFC431
secondary
#8E84CD
accent
#45E35B
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC431

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

Preview Lab → · Contrast checker → · Palette generator →

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