#AFC232#AFC232

#AFC232 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.4% C 0.162 H 117.0°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#AFC232
RGBrgb(175, 194, 50)
HSLhsl(68, 59%, 48%)
HSVhsv(68, 74%, 76%)
CMYKcmyk(9.8%, 0%, 74.2%, 23.9%)
CIE-LABlab(74.78, -24.42, 65.42)
CIE-LCHlch(74.78, 69.83, 110.47°)
OKLaboklab(77.42% -0.0736 0.1444)
OKLCHoklch(77.42% 0.162 117)
XYZxyz(37.5476, 47.9283, 10.2901)
Luminance0.4793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC232 #4532C2
analogous
#C28D32 #AFC232 #67C232
triadic
#AFC232 #32AFC2 #C232AF
tetradic
#AFC232 #32C28D #4532C2 #C23267
square
#AFC232 #32C28D #4532C2 #C23267
split-complementary
#AFC232 #3267C2 #8D32C2
monochromatic
#576119 #839125 #AFC232 #C5D55C #D6E28D

Accessibility & contrast

On white

1.98
#AFC232 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#AFC232 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC232
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC232#FFFFFF#000000##000000
##AFC2321.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB812
Deuteranopia (green-blind)
#CEB93F
Tritanopia (blue-blind)
#BAB7A7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc232;
/* rgb */ color: rgb(175, 194, 50);
/* oklch */ color: oklch(77.4% 0.162 117.0);
Tailwind
colors: {
  custom: {
    50: '#cad475',
    500: '#afc232',
    950: '#000000',
  },
}
SCSS
$custom: #afc232;
$custom-light: #cad475;
$custom-dark: #000000;
JSON
{
  "hex": "#afc232",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 50
  },
  "hsl": {
    "h": 67.917,
    "s": 59.016,
    "l": 47.843
  },
  "oklch": {
    "l": 0.77423,
    "c": 0.16207,
    "h": 117
  },
  "luminance": 0.47928
}

Semantic roles & 50–950 ramp

primary
#AFC232
secondary
#8D84CC
accent
#46E25A
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC232

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

Preview Lab → · Contrast checker → · Palette generator →

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