#AFD45F#AFD45F

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

Color values

HEX#AFD45F
RGBrgb(175, 212, 95)
HSLhsl(79, 58%, 60%)
HSVhsv(79, 55%, 83%)
CMYKcmyk(17.5%, 0%, 55.2%, 16.9%)
CIE-LABlab(80.19, -29.94, 53.02)
CIE-LCHlch(80.19, 60.89, 119.45°)
OKLaboklab(81.9% -0.0848 0.1243)
OKLCHoklch(81.9% 0.15 124.3)
XYZxyz(43.2884, 57.0268, 19.5510)
Luminance0.5703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD45F #845FD4
analogous
#D4BE5F #AFD45F #75D45F
triadic
#AFD45F #5FAFD4 #D45FAF
tetradic
#AFD45F #5FD4BE #845FD4 #D45F75
square
#AFD45F #5FD4BE #845FD4 #D45F75
split-complementary
#AFD45F #5F75D4 #BE5FD4
monochromatic
#709127 #95C234 #AFD45F #C7E18F #DFEEBF

Accessibility & contrast

On white

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

On black

12.41
#AFD45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD45F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD45F#FFFFFF#000000##000000
##AFD45F1.001.6912.4112.41
#FFFFFF1.691.0021.0021.00
#00000012.4121.001.001.00
##00000012.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afd45f;
/* rgb */ color: rgb(175, 212, 95);
/* oklch */ color: oklch(81.9% 0.150 124.3);
Tailwind
colors: {
  custom: {
    50: '#c9e190',
    500: '#afd45f',
    950: '#000000',
  },
}
SCSS
$custom: #afd45f;
$custom-light: #c9e190;
$custom-dark: #000000;
JSON
{
  "hex": "#afd45f",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 95
  },
  "hsl": {
    "h": 78.974,
    "s": 57.635,
    "l": 60.196
  },
  "oklch": {
    "l": 0.81895,
    "c": 0.15046,
    "h": 124.3
  },
  "luminance": 0.57027
}

Semantic roles & 50–950 ramp

primary
#AFD45F
secondary
#5C4097
accent
#20C554
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD45F

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

Preview Lab → · Contrast checker → · Palette generator →

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