#AFDA51#AFDA51

#AFDA51 is a very light, vivid yellow-green. Relative luminance 0.599; OKLCH L 83.1% C 0.170 H 124.8°. Best body text is #000000 at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#AFDA51
RGBrgb(175, 218, 81)
HSLhsl(79, 65%, 59%)
HSVhsv(79, 63%, 85%)
CMYKcmyk(19.7%, 0%, 62.8%, 14.5%)
CIE-LABlab(81.76, -33.89, 60.84)
CIE-LCHlch(81.76, 69.64, 119.12°)
OKLaboklab(83.11% -0.097 0.1394)
OKLCHoklch(83.11% 0.17 124.8)
XYZxyz(44.2360, 59.8504, 17.0048)
Luminance0.5985 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDA51 #7C51DA
analogous
#DAC051 #AFDA51 #6ADA51
triadic
#AFDA51 #51AFDA #DA51AF
tetradic
#AFDA51 #51DAC0 #7C51DA #DA516A
square
#AFDA51 #51DAC0 #7C51DA #DA516A
split-complementary
#AFDA51 #516ADA #C051DA
monochromatic
#6E921F #94C42A #AFDA51 #C6E583 #DDEFB6

Accessibility & contrast

On white

1.62
#AFDA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.97
#AFDA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDA51
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDA51#FFFFFF#000000##000000
##AFDA511.001.6212.9712.97
#FFFFFF1.621.0021.0021.00
#00000012.9721.001.001.00
##00000012.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CD40
Deuteranopia (green-blind)
#E0CB5B
Tritanopia (blue-blind)
#B6D0BD
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afda51;
/* rgb */ color: rgb(175, 218, 81);
/* oklch */ color: oklch(83.1% 0.170 124.8);
Tailwind
colors: {
  custom: {
    50: '#cae588',
    500: '#afda51',
    950: '#000000',
  },
}
SCSS
$custom: #afda51;
$custom-light: #cae588;
$custom-dark: #000000;
JSON
{
  "hex": "#afda51",
  "rgb": {
    "r": 175,
    "g": 218,
    "b": 81
  },
  "hsl": {
    "h": 78.832,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.83114,
    "c": 0.16985,
    "h": 124.8
  },
  "luminance": 0.59851
}

Semantic roles & 50–950 ramp

primary
#AFDA51
secondary
#563997
accent
#40E875
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFDA51

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

Preview Lab → · Contrast checker → · Palette generator →

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