#AFD254#AFD254

#AFD254 is a light, vivid yellow-green. Relative luminance 0.558; OKLCH L 81.3% C 0.157 H 123.0°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#AFD254
RGBrgb(175, 210, 84)
HSLhsl(77, 58%, 58%)
HSVhsv(77, 60%, 82%)
CMYKcmyk(16.7%, 0%, 60%, 17.6%)
CIE-LABlab(79.53, -29.93, 57.14)
CIE-LCHlch(79.53, 64.51, 117.65°)
OKLaboklab(81.32% -0.0858 0.1319)
OKLCHoklch(81.32% 0.157 123)
XYZxyz(42.3263, 55.8471, 16.9355)
Luminance0.5585 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD254 #7754D2
analogous
#D2B654 #AFD254 #70D254
triadic
#AFD254 #54AFD2 #D254AF
tetradic
#AFD254 #54D2B6 #7754D2 #D25470
square
#AFD254 #54D2B6 #7754D2 #D25470
split-complementary
#AFD254 #5470D2 #B654D2
monochromatic
#6C8824 #93B831 #AFD254 #C6DF84 #DCEBB5

Accessibility & contrast

On white

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

On black

12.17
#AFD254 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD254
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD254#FFFFFF#000000##000000
##AFD2541.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC646
Deuteranopia (green-blind)
#D9C55D
Tritanopia (blue-blind)
#B7C8B7
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd254;
/* rgb */ color: rgb(175, 210, 84);
/* oklch */ color: oklch(81.3% 0.157 123.0);
Tailwind
colors: {
  custom: {
    50: '#c9df89',
    500: '#afd254',
    950: '#000000',
  },
}
SCSS
$custom: #afd254;
$custom-light: #c9df89;
$custom-dark: #000000;
JSON
{
  "hex": "#afd254",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 84
  },
  "hsl": {
    "h": 76.667,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81322,
    "c": 0.15736,
    "h": 123
  },
  "luminance": 0.55847
}

Semantic roles & 50–950 ramp

primary
#AFD254
secondary
#533C8E
accent
#46E271
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD254

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

Preview Lab → · Contrast checker → · Palette generator →

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