#AFD54F#AFD54F

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

Color values

HEX#AFD54F
RGBrgb(175, 213, 79)
HSLhsl(77, 61%, 57%)
HSVhsv(77, 63%, 84%)
CMYKcmyk(17.8%, 0%, 62.9%, 16.5%)
CIE-LABlab(80.33, -31.72, 60.13)
CIE-LCHlch(80.33, 67.98, 117.81°)
OKLaboklab(81.96% -0.0912 0.1377)
OKLCHoklch(81.96% 0.165 123.5)
XYZxyz(42.8851, 57.2667, 16.1899)
Luminance0.5727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD54F #754FD5
analogous
#D5B84F #AFD54F #6CD54F
triadic
#AFD54F #4FAFD5 #D54FAF
tetradic
#AFD54F #4FD5B8 #754FD5 #D54F6C
square
#AFD54F #4FD5B8 #754FD5 #D54F6C
split-complementary
#AFD54F #4F6CD5 #B84FD5
monochromatic
#6B8921 #92BA2C #AFD54F #C5E180 #DCEDB2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD54F#FFFFFF#000000##000000
##AFD54F1.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)
#E1C83E
Deuteranopia (green-blind)
#DCC759
Tritanopia (blue-blind)
#B7CBB9
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd54f;
/* rgb */ color: rgb(175, 213, 79);
/* oklch */ color: oklch(82.0% 0.165 123.5);
Tailwind
colors: {
  custom: {
    50: '#cae286',
    500: '#afd54f',
    950: '#000000',
  },
}
SCSS
$custom: #afd54f;
$custom-light: #cae286;
$custom-dark: #000000;
JSON
{
  "hex": "#afd54f",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 79
  },
  "hsl": {
    "h": 77.015,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81956,
    "c": 0.16512,
    "h": 123.5
  },
  "luminance": 0.57267
}

Semantic roles & 50–950 ramp

primary
#AFD54F
secondary
#51398F
accent
#43E571
background
#FEFEFC
surface
#FBFCF3
border
#D4D5CD
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD54F

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

Preview Lab → · Contrast checker → · Palette generator →

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