#AFC332#AFC332

#AFC332 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.6% C 0.163 H 117.3°. Best body text is #000000 at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#AFC332
RGBrgb(175, 195, 50)
HSLhsl(68, 59%, 48%)
HSVhsv(68, 74%, 76%)
CMYKcmyk(10.3%, 0%, 74.4%, 23.5%)
CIE-LABlab(75.06, -24.90, 65.68)
CIE-LCHlch(75.06, 70.25, 110.76°)
OKLaboklab(77.65% -0.0749 0.145)
OKLCHoklch(77.65% 0.163 117.3)
XYZxyz(37.7709, 48.3749, 10.3645)
Luminance0.4837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC332 #4632C3
analogous
#C38E32 #AFC332 #66C332
triadic
#AFC332 #32AFC3 #C332AF
tetradic
#AFC332 #32C38E #4632C3 #C33266
square
#AFC332 #32C38E #4632C3 #C33266
split-complementary
#AFC332 #3266C3 #8E32C3
monochromatic
#586219 #839226 #AFC332 #C5D55D #D6E28E

Accessibility & contrast

On white

1.97
#AFC332 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.67
#AFC332 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC332
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC332#FFFFFF#000000##000000
##AFC3321.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B811
Deuteranopia (green-blind)
#CEBA3F
Tritanopia (blue-blind)
#BAB8A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc332;
/* rgb */ color: rgb(175, 195, 50);
/* oklch */ color: oklch(77.6% 0.163 117.3);
Tailwind
colors: {
  custom: {
    50: '#cad575',
    500: '#afc332',
    950: '#000000',
  },
}
SCSS
$custom: #afc332;
$custom-light: #cad575;
$custom-dark: #000000;
JSON
{
  "hex": "#afc332",
  "rgb": {
    "r": 175,
    "g": 195,
    "b": 50
  },
  "hsl": {
    "h": 68.276,
    "s": 59.184,
    "l": 48.039
  },
  "oklch": {
    "l": 0.77649,
    "c": 0.16318,
    "h": 117.3
  },
  "luminance": 0.48374
}

Semantic roles & 50–950 ramp

primary
#AFC332
secondary
#8E85CC
accent
#45E25B
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC332

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

Preview Lab → · Contrast checker → · Palette generator →

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