#AFD45D#AFD45D

#AFD45D is a light, vivid yellow-green. Relative luminance 0.570; OKLCH L 81.9% C 0.152 H 124.2°. Best body text is #000000 at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#AFD45D
RGBrgb(175, 212, 93)
HSLhsl(79, 58%, 60%)
HSVhsv(79, 56%, 83%)
CMYKcmyk(17.5%, 0%, 56.1%, 16.9%)
CIE-LABlab(80.17, -30.12, 53.90)
CIE-LCHlch(80.17, 61.75, 119.19°)
OKLaboklab(81.87% -0.0855 0.126)
OKLCHoklch(81.87% 0.152 124.2)
XYZxyz(43.1986, 56.9909, 19.0783)
Luminance0.5699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD45D #825DD4
analogous
#D4BD5D #AFD45D #74D45D
triadic
#AFD45D #5DAFD4 #D45DAF
tetradic
#AFD45D #5DD4BD #825DD4 #D45D74
square
#AFD45D #5DD4BD #825DD4 #D45D74
split-complementary
#AFD45D #5D74D4 #BD5DD4
monochromatic
#6F9026 #95C133 #AFD45D #C7E18D #DFEEBE

Accessibility & contrast

On white

1.69
#AFD45D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.40
#AFD45D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD45D
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD45D#FFFFFF#000000##000000
##AFD45D1.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC851
Deuteranopia (green-blind)
#DAC765
Tritanopia (blue-blind)
#B6CBBA
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd45d;
/* rgb */ color: rgb(175, 212, 93);
/* oklch */ color: oklch(81.9% 0.152 124.2);
Tailwind
colors: {
  custom: {
    50: '#c9e18f',
    500: '#afd45d',
    950: '#000000',
  },
}
SCSS
$custom: #afd45d;
$custom-light: #c9e18f;
$custom-dark: #000000;
JSON
{
  "hex": "#afd45d",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 93
  },
  "hsl": {
    "h": 78.655,
    "s": 58.049,
    "l": 59.804
  },
  "oklch": {
    "l": 0.81872,
    "c": 0.15225,
    "h": 124.2
  },
  "luminance": 0.56991
}

Semantic roles & 50–950 ramp

primary
#AFD45D
secondary
#5A3F96
accent
#47E177
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD45D

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

Preview Lab → · Contrast checker → · Palette generator →

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