#AFD939#AFD939

#AFD939 is a very light, vivid yellow-green. Relative luminance 0.590; OKLCH L 82.7% C 0.184 H 123.5°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#AFD939
RGBrgb(175, 217, 57)
HSLhsl(76, 68%, 54%)
HSVhsv(76, 74%, 85%)
CMYKcmyk(19.4%, 0%, 73.7%, 14.9%)
CIE-LABlab(81.31, -34.92, 69.33)
CIE-LCHlch(81.31, 77.62, 116.73°)
OKLaboklab(82.7% -0.1019 0.1538)
OKLCHoklch(82.7% 0.184 123.5)
XYZxyz(43.2311, 59.0348, 12.9874)
Luminance0.5904 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD939 #6339D9
analogous
#D9B339 #AFD939 #5FD939
triadic
#AFD939 #39AFD9 #D939AF
tetradic
#AFD939 #39D9B3 #6339D9 #D9395F
square
#AFD939 #39D9B3 #6339D9 #D9395F
split-complementary
#AFD939 #395FD9 #B339D9
monochromatic
#647F18 #8DB322 #AFD939 #C4E36C #D8EDA0

Accessibility & contrast

On white

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

On black

12.81
#AFD939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD939
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD939#FFFFFF#000000##000000
##AFD9391.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB16
Deuteranopia (green-blind)
#E0CA48
Tritanopia (blue-blind)
#B8CEBB
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd939;
/* rgb */ color: rgb(175, 217, 57);
/* oklch */ color: oklch(82.7% 0.184 123.5);
Tailwind
colors: {
  custom: {
    50: '#cbe47b',
    500: '#afd939',
    950: '#000000',
  },
}
SCSS
$custom: #afd939;
$custom-light: #cbe47b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd939",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 57
  },
  "hsl": {
    "h": 75.75,
    "s": 67.797,
    "l": 53.725
  },
  "oklch": {
    "l": 0.82701,
    "c": 0.18449,
    "h": 123.5
  },
  "luminance": 0.59035
}

Semantic roles & 50–950 ramp

primary
#AFD939
secondary
#473086
accent
#3DEB6B
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD939

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

Preview Lab → · Contrast checker → · Palette generator →

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