#AFD947#AFD947

#AFD947 is a very light, vivid yellow-green. Relative luminance 0.592; OKLCH L 82.8% C 0.176 H 124.1°. Best body text is #000000 at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#AFD947
RGBrgb(175, 217, 71)
HSLhsl(77, 66%, 56%)
HSVhsv(77, 67%, 85%)
CMYKcmyk(19.4%, 0%, 67.3%, 14.9%)
CIE-LABlab(81.40, -34.12, 64.43)
CIE-LCHlch(81.40, 72.91, 117.90°)
OKLaboklab(82.8% -0.0985 0.1456)
OKLCHoklch(82.8% 0.176 124.1)
XYZxyz(43.6297, 59.1943, 15.0871)
Luminance0.5919 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD947 #7147D9
analogous
#D9BA47 #AFD947 #66D947
triadic
#AFD947 #47AFD9 #D947AF
tetradic
#AFD947 #47D9BA #7147D9 #D94766
square
#AFD947 #47D9BA #7147D9 #D94766
split-complementary
#AFD947 #4766D9 #BA47D9
monochromatic
#6A891C #91BC27 #AFD947 #C5E37A #DBEEAC

Accessibility & contrast

On white

1.64
#AFD947 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.84
#AFD947 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD947
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD947#FFFFFF#000000##000000
##AFD9471.001.6412.8412.84
#FFFFFF1.641.0021.0021.00
#00000012.8421.001.001.00
##00000012.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC31
Deuteranopia (green-blind)
#DFCA53
Tritanopia (blue-blind)
#B7CFBC
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd947;
/* rgb */ color: rgb(175, 217, 71);
/* oklch */ color: oklch(82.8% 0.176 124.1);
Tailwind
colors: {
  custom: {
    50: '#cae482',
    500: '#afd947',
    950: '#000000',
  },
}
SCSS
$custom: #afd947;
$custom-light: #cae482;
$custom-dark: #000000;
JSON
{
  "hex": "#afd947",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 71
  },
  "hsl": {
    "h": 77.26,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.82799,
    "c": 0.17584,
    "h": 124.1
  },
  "luminance": 0.59195
}

Semantic roles & 50–950 ramp

primary
#AFD947
secondary
#4F358F
accent
#3FE970
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD947

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

Preview Lab → · Contrast checker → · Palette generator →

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