#AFD54E#AFD54E

#AFD54E is a light, vivid yellow-green. Relative luminance 0.573; OKLCH L 81.9% C 0.166 H 123.5°. Best body text is #000000 at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#AFD54E
RGBrgb(175, 213, 78)
HSLhsl(77, 62%, 57%)
HSVhsv(77, 63%, 84%)
CMYKcmyk(17.8%, 0%, 63.4%, 16.5%)
CIE-LABlab(80.32, -31.79, 60.53)
CIE-LCHlch(80.32, 68.37, 117.71°)
OKLaboklab(81.95% -0.0915 0.1384)
OKLCHoklch(81.95% 0.166 123.5)
XYZxyz(42.8489, 57.2523, 15.9996)
Luminance0.5725 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD54E #744ED5
analogous
#D5B84E #AFD54E #6CD54E
triadic
#AFD54E #4EAFD5 #D54EAF
tetradic
#AFD54E #4ED5B8 #744ED5 #D54E6C
square
#AFD54E #4ED5B8 #744ED5 #D54E6C
split-complementary
#AFD54E #4E6CD5 #B84ED5
monochromatic
#6B8820 #92BA2C #AFD54E #C5E17F #DCECB1

Accessibility & contrast

On white

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

On black

12.45
#AFD54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD54E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD54E#FFFFFF#000000##000000
##AFD54E1.001.6912.4512.45
#FFFFFF1.691.0021.0021.00
#00000012.4521.001.001.00
##00000012.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C83D
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#B7CBB9
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd54e;
/* rgb */ color: rgb(175, 213, 78);
/* oklch */ color: oklch(81.9% 0.166 123.5);
Tailwind
colors: {
  custom: {
    50: '#cae286',
    500: '#afd54e',
    950: '#000000',
  },
}
SCSS
$custom: #afd54e;
$custom-light: #cae286;
$custom-dark: #000000;
JSON
{
  "hex": "#afd54e",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 78
  },
  "hsl": {
    "h": 76.889,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81947,
    "c": 0.16588,
    "h": 123.5
  },
  "luminance": 0.57253
}

Semantic roles & 50–950 ramp

primary
#AFD54E
secondary
#51398F
accent
#43E571
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD54E

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

Preview Lab → · Contrast checker → · Palette generator →

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