#AFD351#AFD351

#AFD351 is a light, vivid yellow-green. Relative luminance 0.563; OKLCH L 81.5% C 0.161 H 123.1°. Best body text is #000000 at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#AFD351
RGBrgb(175, 211, 81)
HSLhsl(77, 60%, 57%)
HSVhsv(77, 62%, 83%)
CMYKcmyk(17.1%, 0%, 61.6%, 17.3%)
CIE-LABlab(79.78, -30.63, 58.70)
CIE-LCHlch(79.78, 66.22, 117.56°)
OKLaboklab(81.52% -0.088 0.1349)
OKLCHoklch(81.52% 0.161 123.1)
XYZxyz(42.4590, 56.2964, 16.4124)
Luminance0.5630 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD351 #7551D3
analogous
#D3B651 #AFD351 #6ED351
triadic
#AFD351 #51AFD3 #D351AF
tetradic
#AFD351 #51D3B6 #7551D3 #D3516E
square
#AFD351 #51D3B6 #7551D3 #D3516E
split-complementary
#AFD351 #516ED3 #B651D3
monochromatic
#6B8722 #92B82F #AFD351 #C5DF82 #DCECB3

Accessibility & contrast

On white

1.71
#AFD351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.26
#AFD351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD351
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD351#FFFFFF#000000##000000
##AFD3511.001.7112.2612.26
#FFFFFF1.711.0021.0021.00
#00000012.2621.001.001.00
##00000012.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC741
Deuteranopia (green-blind)
#DAC65A
Tritanopia (blue-blind)
#B7C9B8
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd351;
/* rgb */ color: rgb(175, 211, 81);
/* oklch */ color: oklch(81.5% 0.161 123.1);
Tailwind
colors: {
  custom: {
    50: '#cae087',
    500: '#afd351',
    950: '#000000',
  },
}
SCSS
$custom: #afd351;
$custom-light: #cae087;
$custom-dark: #000000;
JSON
{
  "hex": "#afd351",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 81
  },
  "hsl": {
    "h": 76.615,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.8152,
    "c": 0.16105,
    "h": 123.1
  },
  "luminance": 0.56297
}

Semantic roles & 50–950 ramp

primary
#AFD351
secondary
#513A8E
accent
#45E371
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD351

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

Preview Lab → · Contrast checker → · Palette generator →

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