#AFD451#AFD451

#AFD451 is a light, vivid yellow-green. Relative luminance 0.568; OKLCH L 81.7% C 0.162 H 123.4°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#AFD451
RGBrgb(175, 212, 81)
HSLhsl(77, 60%, 57%)
HSVhsv(77, 62%, 83%)
CMYKcmyk(17.5%, 0%, 61.8%, 16.9%)
CIE-LABlab(80.06, -31.10, 59.01)
CIE-LCHlch(80.06, 66.70, 117.79°)
OKLaboklab(81.75% -0.0893 0.1355)
OKLCHoklch(81.75% 0.162 123.4)
XYZxyz(42.7082, 56.7948, 16.4955)
Luminance0.5679 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD451 #7651D4
analogous
#D4B851 #AFD451 #6DD451
triadic
#AFD451 #51AFD4 #D451AF
tetradic
#AFD451 #51D4B8 #7651D4 #D4516D
square
#AFD451 #51D4B8 #7651D4 #D4516D
split-complementary
#AFD451 #516DD4 #B851D4
monochromatic
#6C8922 #92BA2E #AFD451 #C6E082 #DCECB3

Accessibility & contrast

On white

1.70
#AFD451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#AFD451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD451
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD451#FFFFFF#000000##000000
##AFD4511.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC841
Deuteranopia (green-blind)
#DBC65A
Tritanopia (blue-blind)
#B7CAB8
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd451;
/* rgb */ color: rgb(175, 212, 81);
/* oklch */ color: oklch(81.7% 0.162 123.4);
Tailwind
colors: {
  custom: {
    50: '#cae187',
    500: '#afd451',
    950: '#000000',
  },
}
SCSS
$custom: #afd451;
$custom-light: #cae187;
$custom-dark: #000000;
JSON
{
  "hex": "#afd451",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 81
  },
  "hsl": {
    "h": 76.947,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81747,
    "c": 0.1623,
    "h": 123.4
  },
  "luminance": 0.56795
}

Semantic roles & 50–950 ramp

primary
#AFD451
secondary
#523A8F
accent
#44E471
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD451

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

Preview Lab → · Contrast checker → · Palette generator →

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