#AFD151#AFD151

#AFD151 is a light, vivid yellow-green. Relative luminance 0.553; OKLCH L 81.1% C 0.159 H 122.6°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#AFD151
RGBrgb(175, 209, 81)
HSLhsl(76, 58%, 57%)
HSVhsv(76, 61%, 82%)
CMYKcmyk(16.3%, 0%, 61.2%, 18%)
CIE-LABlab(79.22, -29.69, 58.09)
CIE-LCHlch(79.22, 65.24, 117.07°)
OKLaboklab(81.07% -0.0854 0.1336)
OKLCHoklch(81.07% 0.159 122.6)
XYZxyz(41.9652, 55.3088, 16.2478)
Luminance0.5531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD151 #7351D1
analogous
#D1B351 #AFD151 #6FD151
triadic
#AFD151 #51AFD1 #D151AF
tetradic
#AFD151 #51D1B3 #7351D1 #D1516F
square
#AFD151 #51D1B3 #7351D1 #D1516F
split-complementary
#AFD151 #516FD1 #B351D1
monochromatic
#6B8523 #92B530 #AFD151 #C5DE81 #DCEBB2

Accessibility & contrast

On white

1.74
#AFD151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#AFD151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD151
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD151#FFFFFF#000000##000000
##AFD1511.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC542
Deuteranopia (green-blind)
#D8C45A
Tritanopia (blue-blind)
#B7C7B6
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #afd151;
/* rgb */ color: rgb(175, 209, 81);
/* oklch */ color: oklch(81.1% 0.159 122.6);
Tailwind
colors: {
  custom: {
    50: '#cadf87',
    500: '#afd151',
    950: '#000000',
  },
}
SCSS
$custom: #afd151;
$custom-light: #cadf87;
$custom-dark: #000000;
JSON
{
  "hex": "#afd151",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 75.938,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81066,
    "c": 0.15854,
    "h": 122.6
  },
  "luminance": 0.55309
}

Semantic roles & 50–950 ramp

primary
#AFD151
secondary
#503B8B
accent
#46E170
background
#FEFEFC
surface
#FBFCF3
border
#D4D5CD
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD151

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

Preview Lab → · Contrast checker → · Palette generator →

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