#AFD970#AFD970

#AFD970 is a very light, vivid yellow-green. Relative luminance 0.599; OKLCH L 83.2% C 0.141 H 127.2°. Best body text is #000000 at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#AFD970
RGBrgb(175, 217, 112)
HSLhsl(84, 58%, 65%)
HSVhsv(84, 48%, 85%)
CMYKcmyk(19.4%, 0%, 48.4%, 14.9%)
CIE-LABlab(81.79, -30.61, 46.96)
CIE-LCHlch(81.79, 56.05, 123.09°)
OKLaboklab(83.24% -0.0853 0.1125)
OKLCHoklch(83.24% 0.141 127.2)
XYZxyz(45.4164, 59.9089, 24.4969)
Luminance0.5991 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD970 #9A70D9
analogous
#D9CF70 #AFD970 #7BD970
triadic
#AFD970 #70AFD9 #D970AF
tetradic
#AFD970 #70D9CF #9A70D9 #D9707B
square
#AFD970 #70D9CF #9A70D9 #D9707B
split-complementary
#AFD970 #707BD9 #CF70D9
monochromatic
#73A32B #94CC40 #AFD970 #CAE6A0 #E5F3D1

Accessibility & contrast

On white

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

On black

12.98
#AFD970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD970
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD970#FFFFFF#000000##000000
##AFD9701.001.6212.9812.98
#FFFFFF1.621.0021.0021.00
#00000012.9821.001.001.00
##00000012.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CD67
Deuteranopia (green-blind)
#DCCB76
Tritanopia (blue-blind)
#B4D1C1
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afd970;
/* rgb */ color: rgb(175, 217, 112);
/* oklch */ color: oklch(83.2% 0.141 127.2);
Tailwind
colors: {
  custom: {
    50: '#c9e59b',
    500: '#afd970',
    950: '#000000',
  },
}
SCSS
$custom: #afd970;
$custom-light: #c9e59b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd970",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 112
  },
  "hsl": {
    "h": 84,
    "s": 58.011,
    "l": 64.51
  },
  "oklch": {
    "l": 0.8324,
    "c": 0.14113,
    "h": 127.2
  },
  "luminance": 0.5991
}

Semantic roles & 50–950 ramp

primary
#AFD970
secondary
#6D46A7
accent
#20C662
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150E
muted
#83847F

Preview Lab

Preview with #AFD970

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

Preview Lab → · Contrast checker → · Palette generator →

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