#AFD45C#AFD45C

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

Color values

HEX#AFD45C
RGBrgb(175, 212, 92)
HSLhsl(79, 58%, 60%)
HSVhsv(79, 57%, 83%)
CMYKcmyk(17.5%, 0%, 56.6%, 16.9%)
CIE-LABlab(80.16, -30.21, 54.34)
CIE-LCHlch(80.16, 62.17, 119.07°)
OKLaboklab(81.86% -0.0858 0.1268)
OKLCHoklch(81.86% 0.153 124.1)
XYZxyz(43.1546, 56.9733, 18.8466)
Luminance0.5697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD45C #815CD4
analogous
#D4BD5C #AFD45C #73D45C
triadic
#AFD45C #5CAFD4 #D45CAF
tetradic
#AFD45C #5CD4BD #815CD4 #D45C73
square
#AFD45C #5CD4BD #815CD4 #D45C73
split-complementary
#AFD45C #5C73D4 #BD5CD4
monochromatic
#6F9026 #95C033 #AFD45C #C7E18C #DFEEBD

Accessibility & contrast

On white

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

On black

12.39
#AFD45C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD45C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD45C#FFFFFF#000000##000000
##AFD45C1.001.6912.3912.39
#FFFFFF1.691.0021.0021.00
#00000012.3921.001.001.00
##00000012.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afd45c;
/* rgb */ color: rgb(175, 212, 92);
/* oklch */ color: oklch(81.9% 0.153 124.1);
Tailwind
colors: {
  custom: {
    50: '#c9e18e',
    500: '#afd45c',
    950: '#000000',
  },
}
SCSS
$custom: #afd45c;
$custom-light: #c9e18e;
$custom-dark: #000000;
JSON
{
  "hex": "#afd45c",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 92
  },
  "hsl": {
    "h": 78.5,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.81861,
    "c": 0.15313,
    "h": 124.1
  },
  "luminance": 0.56974
}

Semantic roles & 50–950 ramp

primary
#AFD45C
secondary
#5A3F95
accent
#46E176
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD45C

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

Preview Lab → · Contrast checker → · Palette generator →

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