#AFD258#AFD258

#AFD258 is a light, vivid yellow-green. Relative luminance 0.559; OKLCH L 81.4% C 0.154 H 123.3°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#AFD258
RGBrgb(175, 210, 88)
HSLhsl(77, 58%, 58%)
HSVhsv(77, 58%, 82%)
CMYKcmyk(16.7%, 0%, 58.1%, 17.6%)
CIE-LABlab(79.56, -29.61, 55.44)
CIE-LCHlch(79.56, 62.85, 118.10°)
OKLaboklab(81.36% -0.0845 0.1288)
OKLCHoklch(81.36% 0.154 123.3)
XYZxyz(42.4875, 55.9115, 17.7843)
Luminance0.5591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD258 #7B58D2
analogous
#D2B858 #AFD258 #72D258
triadic
#AFD258 #58AFD2 #D258AF
tetradic
#AFD258 #58D2B8 #7B58D2 #D25872
square
#AFD258 #58D2B8 #7B58D2 #D25872
split-complementary
#AFD258 #5872D2 #B858D2
monochromatic
#6D8A25 #93BB32 #AFD258 #C6DF88 #DDECB8

Accessibility & contrast

On white

1.72
#AFD258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#AFD258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD258
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD258#FFFFFF#000000##000000
##AFD2581.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC64B
Deuteranopia (green-blind)
#D8C560
Tritanopia (blue-blind)
#B7C8B8
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd258;
/* rgb */ color: rgb(175, 210, 88);
/* oklch */ color: oklch(81.4% 0.154 123.3);
Tailwind
colors: {
  custom: {
    50: '#c9df8b',
    500: '#afd258',
    950: '#000000',
  },
}
SCSS
$custom: #afd258;
$custom-light: #c9df8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd258",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 88
  },
  "hsl": {
    "h": 77.213,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81364,
    "c": 0.15401,
    "h": 123.3
  },
  "luminance": 0.55912
}

Semantic roles & 50–950 ramp

primary
#AFD258
secondary
#553E91
accent
#47E173
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD258

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

Preview Lab → · Contrast checker → · Palette generator →

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