#AFD240#AFD240

#AFD240 is a light, vivid yellow-green. Relative luminance 0.556; OKLCH L 81.1% C 0.172 H 122.1°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#AFD240
RGBrgb(175, 210, 64)
HSLhsl(74, 62%, 54%)
HSVhsv(74, 70%, 82%)
CMYKcmyk(16.7%, 0%, 69.5%, 17.6%)
CIE-LABlab(79.37, -31.31, 65.00)
CIE-LCHlch(79.37, 72.14, 115.72°)
OKLaboklab(81.15% -0.0914 0.1458)
OKLCHoklch(81.15% 0.172 122.1)
XYZxyz(41.6518, 55.5772, 13.3827)
Luminance0.5558 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD240 #6340D2
analogous
#D2AC40 #AFD240 #66D240
triadic
#AFD240 #40AFD2 #D240AF
tetradic
#AFD240 #40D2AC #6340D2 #D24066
square
#AFD240 #40D2AC #6340D2 #D24066
split-complementary
#AFD240 #4066D2 #AC40D2
monochromatic
#647B1D #8DAC29 #AFD240 #C4DE72 #D8E9A3

Accessibility & contrast

On white

1.73
#AFD240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#AFD240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD240
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD240#FFFFFF#000000##000000
##AFD2401.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC528
Deuteranopia (green-blind)
#DAC54C
Tritanopia (blue-blind)
#B8C7B5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd240;
/* rgb */ color: rgb(175, 210, 64);
/* oklch */ color: oklch(81.1% 0.172 122.1);
Tailwind
colors: {
  custom: {
    50: '#cadf7d',
    500: '#afd240',
    950: '#000000',
  },
}
SCSS
$custom: #afd240;
$custom-light: #cadf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afd240",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 74.384,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.81149,
    "c": 0.17206,
    "h": 122.1
  },
  "luminance": 0.55577
}

Semantic roles & 50–950 ramp

primary
#AFD240
secondary
#473483
accent
#43E56A
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD240

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

Preview Lab → · Contrast checker → · Palette generator →

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