#AFD02C#AFD02C

#AFD02C is a light, vivid yellow-green. Relative luminance 0.544; OKLCH L 80.6% C 0.181 H 121.0°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#AFD02C
RGBrgb(175, 208, 44)
HSLhsl(72, 65%, 49%)
HSVhsv(72, 79%, 82%)
CMYKcmyk(15.9%, 0%, 78.8%, 18.4%)
CIE-LABlab(78.70, -31.35, 70.86)
CIE-LCHlch(78.70, 77.49, 113.86°)
OKLaboklab(80.57% -0.0931 0.1549)
OKLCHoklch(80.57% 0.181 121)
XYZxyz(40.6904, 54.4076, 10.7405)
Luminance0.5441 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD02C #4D2CD0
analogous
#D09F2C #AFD02C #5DD02C
triadic
#AFD02C #2CAFD0 #D02CAF
tetradic
#AFD02C #2CD09F #4D2CD0 #D02C5D
square
#AFD02C #2CD09F #4D2CD0 #D02C5D
split-complementary
#AFD02C #2C5DD0 #9F2CD0
monochromatic
#5A6B17 #859D21 #AFD02C #C3DD5D #D6E78F

Accessibility & contrast

On white

1.77
#AFD02C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#AFD02C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD02C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD02C#FFFFFF#000000##000000
##AFD02C1.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#D9C33D
Tritanopia (blue-blind)
#B9C5B2
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afd02c;
/* rgb */ color: rgb(175, 208, 44);
/* oklch */ color: oklch(80.6% 0.181 121.0);
Tailwind
colors: {
  custom: {
    50: '#cbde74',
    500: '#afd02c',
    950: '#000000',
  },
}
SCSS
$custom: #afd02c;
$custom-light: #cbde74;
$custom-dark: #000000;
JSON
{
  "hex": "#afd02c",
  "rgb": {
    "r": 175,
    "g": 208,
    "b": 44
  },
  "hsl": {
    "h": 72.073,
    "s": 65.079,
    "l": 49.412
  },
  "oklch": {
    "l": 0.8057,
    "c": 0.18075,
    "h": 121
  },
  "luminance": 0.54408
}

Semantic roles & 50–950 ramp

primary
#AFD02C
secondary
#3A2C75
accent
#40E862
background
#FEFEFB
surface
#FBFCF1
border
#D4D5CB
text
#141509
muted
#83847D

Preview Lab

Preview with #AFD02C

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

Preview Lab → · Contrast checker → · Palette generator →

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