#AFD751#AFD751

#AFD751 is a very light, vivid yellow-green. Relative luminance 0.583; OKLCH L 82.4% C 0.166 H 124.1°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#AFD751
RGBrgb(175, 215, 81)
HSLhsl(78, 63%, 58%)
HSVhsv(78, 62%, 84%)
CMYKcmyk(18.6%, 0%, 62.3%, 15.7%)
CIE-LABlab(80.91, -32.50, 59.93)
CIE-LCHlch(80.91, 68.17, 118.47°)
OKLaboklab(82.43% -0.0932 0.1375)
OKLCHoklch(82.43% 0.166 124.1)
XYZxyz(43.4651, 58.3086, 16.7478)
Luminance0.5831 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD751 #7951D7
analogous
#D7BC51 #AFD751 #6CD751
triadic
#AFD751 #51AFD7 #D751AF
tetradic
#AFD751 #51D7BC #7951D7 #D7516C
square
#AFD751 #51D7BC #7951D7 #D7516C
split-complementary
#AFD751 #516CD7 #BC51D7
monochromatic
#6D8D20 #93BF2C #AFD751 #C6E283 #DDEEB5

Accessibility & contrast

On white

1.66
#AFD751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.66
#AFD751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD751
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD751#FFFFFF#000000##000000
##AFD7511.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CA41
Deuteranopia (green-blind)
#DDC95B
Tritanopia (blue-blind)
#B7CDBB
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #afd751;
/* rgb */ color: rgb(175, 215, 81);
/* oklch */ color: oklch(82.4% 0.166 124.1);
Tailwind
colors: {
  custom: {
    50: '#cae387',
    500: '#afd751',
    950: '#000000',
  },
}
SCSS
$custom: #afd751;
$custom-light: #cae387;
$custom-dark: #000000;
JSON
{
  "hex": "#afd751",
  "rgb": {
    "r": 175,
    "g": 215,
    "b": 81
  },
  "hsl": {
    "h": 77.91,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.8243,
    "c": 0.16607,
    "h": 124.1
  },
  "luminance": 0.58309
}

Semantic roles & 50–950 ramp

primary
#AFD751
secondary
#543993
accent
#42E673
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD751

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

Preview Lab → · Contrast checker → · Palette generator →

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