#AFCE42#AFCE42

#AFCE42 is a light, vivid yellow-green. Relative luminance 0.536; OKLCH L 80.3% C 0.166 H 121.1°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#AFCE42
RGBrgb(175, 206, 66)
HSLhsl(73, 59%, 53%)
HSVhsv(73, 68%, 81%)
CMYKcmyk(15%, 0%, 68%, 19.2%)
CIE-LABlab(78.26, -29.31, 63.12)
CIE-LCHlch(78.26, 69.59, 114.90°)
OKLaboklab(80.25% -0.0857 0.1421)
OKLCHoklch(80.25% 0.166 121.1)
XYZxyz(40.7345, 53.6500, 13.3627)
Luminance0.5365 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCE42 #6142CE
analogous
#CEA742 #AFCE42 #69CE42
triadic
#AFCE42 #42AFCE #CE42AF
tetradic
#AFCE42 #42CEA7 #6142CE #CE4269
square
#AFCE42 #42CEA7 #6142CE #CE4269
split-complementary
#AFCE42 #4269CE #A742CE
monochromatic
#63771F #8CA72B #AFCE42 #C4DB73 #D8E7A3

Accessibility & contrast

On white

1.79
#AFCE42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.73
#AFCE42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCE42
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCE42#FFFFFF#000000##000000
##AFCE421.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC22D
Deuteranopia (green-blind)
#D7C24D
Tritanopia (blue-blind)
#B8C4B2
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #afce42;
/* rgb */ color: rgb(175, 206, 66);
/* oklch */ color: oklch(80.3% 0.166 121.1);
Tailwind
colors: {
  custom: {
    50: '#cadd7e',
    500: '#afce42',
    950: '#000000',
  },
}
SCSS
$custom: #afce42;
$custom-light: #cadd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afce42",
  "rgb": {
    "r": 175,
    "g": 206,
    "b": 66
  },
  "hsl": {
    "h": 73.286,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.80253,
    "c": 0.16598,
    "h": 121.1
  },
  "luminance": 0.5365
}

Semantic roles & 50–950 ramp

primary
#AFCE42
secondary
#45357F
accent
#46E268
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCE42

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

Preview Lab → · Contrast checker → · Palette generator →

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