#AFD74B#AFD74B

#AFD74B is a very light, vivid yellow-green. Relative luminance 0.582; OKLCH L 82.4% C 0.171 H 123.8°. Best body text is #000000 at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#AFD74B
RGBrgb(175, 215, 75)
HSLhsl(77, 64%, 57%)
HSVhsv(77, 65%, 84%)
CMYKcmyk(18.6%, 0%, 65.1%, 15.7%)
CIE-LABlab(80.86, -32.93, 62.32)
CIE-LCHlch(80.86, 70.48, 117.85°)
OKLaboklab(82.38% -0.0949 0.1417)
OKLCHoklch(82.38% 0.171 123.8)
XYZxyz(43.2500, 58.2225, 15.6148)
Luminance0.5822 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD74B #734BD7
analogous
#D7B94B #AFD74B #69D74B
triadic
#AFD74B #4BAFD7 #D74BAF
tetradic
#AFD74B #4BD7B9 #734BD7 #D74B69
square
#AFD74B #4BD7B9 #734BD7 #D74B69
split-complementary
#AFD74B #4B69D7 #B94BD7
monochromatic
#6B891E #92BB2A #AFD74B #C5E27D #DCEDAF

Accessibility & contrast

On white

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

On black

12.64
#AFD74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD74B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD74B#FFFFFF#000000##000000
##AFD74B1.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA38
Deuteranopia (green-blind)
#DDC856
Tritanopia (blue-blind)
#B7CDBA
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #afd74b;
/* rgb */ color: rgb(175, 215, 75);
/* oklch */ color: oklch(82.4% 0.171 123.8);
Tailwind
colors: {
  custom: {
    50: '#cae384',
    500: '#afd74b',
    950: '#000000',
  },
}
SCSS
$custom: #afd74b;
$custom-light: #cae384;
$custom-dark: #000000;
JSON
{
  "hex": "#afd74b",
  "rgb": {
    "r": 175,
    "g": 215,
    "b": 75
  },
  "hsl": {
    "h": 77.143,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.82376,
    "c": 0.17057,
    "h": 123.8
  },
  "luminance": 0.58223
}

Semantic roles & 50–950 ramp

primary
#AFD74B
secondary
#50378F
accent
#41E770
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD74B

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

Preview Lab → · Contrast checker → · Palette generator →

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