#AFD251#AFD251

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

Color values

HEX#AFD251
RGBrgb(175, 210, 81)
HSLhsl(76, 59%, 57%)
HSVhsv(76, 61%, 82%)
CMYKcmyk(16.7%, 0%, 61.4%, 17.6%)
CIE-LABlab(79.50, -30.16, 58.40)
CIE-LCHlch(79.50, 65.73, 117.32°)
OKLaboklab(81.29% -0.0867 0.1342)
OKLCHoklch(81.29% 0.16 122.9)
XYZxyz(42.2114, 55.8011, 16.3299)
Luminance0.5580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD251 #7451D2
analogous
#D2B551 #AFD251 #6FD251
triadic
#AFD251 #51AFD2 #D251AF
tetradic
#AFD251 #51D2B5 #7451D2 #D2516F
square
#AFD251 #51D2B5 #7451D2 #D2516F
split-complementary
#AFD251 #516FD2 #B551D2
monochromatic
#6B8623 #92B72F #AFD251 #C5DF82 #DCEBB2

Accessibility & contrast

On white

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

On black

12.16
#AFD251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD251
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD251#FFFFFF#000000##000000
##AFD2511.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afd251;
/* rgb */ color: rgb(175, 210, 81);
/* oklch */ color: oklch(81.3% 0.160 122.9);
Tailwind
colors: {
  custom: {
    50: '#cadf87',
    500: '#afd251',
    950: '#000000',
  },
}
SCSS
$custom: #afd251;
$custom-light: #cadf87;
$custom-dark: #000000;
JSON
{
  "hex": "#afd251",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 76.279,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81293,
    "c": 0.15979,
    "h": 122.9
  },
  "luminance": 0.55801
}

Semantic roles & 50–950 ramp

primary
#AFD251
secondary
#513B8D
accent
#46E270
background
#FEFEFC
surface
#FBFCF3
border
#D4D5CD
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD251

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

Preview Lab → · Contrast checker → · Palette generator →

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