#AFCD2D#AFCD2D

#AFCD2D is a light, vivid yellow-green. Relative luminance 0.530; OKLCH L 79.9% C 0.177 H 120.2°. Best body text is #000000 at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#AFCD2D
RGBrgb(175, 205, 45)
HSLhsl(71, 64%, 49%)
HSVhsv(71, 78%, 80%)
CMYKcmyk(14.6%, 0%, 78%, 19.6%)
CIE-LABlab(77.86, -29.90, 69.82)
CIE-LCHlch(77.86, 75.95, 113.18°)
OKLaboklab(79.89% -0.0891 0.1529)
OKLCHoklch(79.89% 0.177 120.2)
XYZxyz(39.9850, 52.9662, 10.5992)
Luminance0.5297 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCD2D #4B2DCD
analogous
#CD9B2D #AFCD2D #5FCD2D
triadic
#AFCD2D #2DAFCD #CD2DAF
tetradic
#AFCD2D #2DCD9B #4B2DCD #CD2D5F
square
#AFCD2D #2DCD9B #4B2DCD #CD2D5F
split-complementary
#AFCD2D #2D5FCD #9B2DCD
monochromatic
#596917 #849B22 #AFCD2D #C3DB5C #D6E68E

Accessibility & contrast

On white

1.81
#AFCD2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.59
#AFCD2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCD2D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCD2D#FFFFFF#000000##000000
##AFCD2D1.001.8111.5911.59
#FFFFFF1.811.0021.0021.00
#00000011.5921.001.001.00
##00000011.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC100
Deuteranopia (green-blind)
#D7C13D
Tritanopia (blue-blind)
#B9C2B0
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #afcd2d;
/* rgb */ color: rgb(175, 205, 45);
/* oklch */ color: oklch(79.9% 0.177 120.2);
Tailwind
colors: {
  custom: {
    50: '#cbdc74',
    500: '#afcd2d',
    950: '#000000',
  },
}
SCSS
$custom: #afcd2d;
$custom-light: #cbdc74;
$custom-dark: #000000;
JSON
{
  "hex": "#afcd2d",
  "rgb": {
    "r": 175,
    "g": 205,
    "b": 45
  },
  "hsl": {
    "h": 71.25,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.79891,
    "c": 0.17693,
    "h": 120.2
  },
  "luminance": 0.52966
}

Semantic roles & 50–950 ramp

primary
#AFCD2D
secondary
#392C73
accent
#41E760
background
#FEFEFB
surface
#FBFCF1
border
#D4D5CB
text
#141509
muted
#83847D

Preview Lab

Preview with #AFCD2D

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

Preview Lab → · Contrast checker → · Palette generator →

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