#AFD336#AFD336

#AFD336 is a light, vivid yellow-green. Relative luminance 0.560; OKLCH L 81.3% C 0.179 H 122.0°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#AFD336
RGBrgb(175, 211, 54)
HSLhsl(74, 64%, 52%)
HSVhsv(74, 74%, 83%)
CMYKcmyk(17.1%, 0%, 74.4%, 17.3%)
CIE-LABlab(79.60, -32.31, 68.67)
CIE-LCHlch(79.60, 75.89, 115.19°)
OKLaboklab(81.31% -0.095 0.1519)
OKLCHoklch(81.31% 0.179 122)
XYZxyz(41.6399, 55.9688, 12.0987)
Luminance0.5597 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD336 #5A36D3
analogous
#D3A936 #AFD336 #61D336
triadic
#AFD336 #36AFD3 #D336AF
tetradic
#AFD336 #36D3A9 #5A36D3 #D33661
square
#AFD336 #36D3A9 #5A36D3 #D33661
split-complementary
#AFD336 #3661D3 #A936D3
monochromatic
#60751A #89A725 #AFD336 #C3DE68 #D7E99A

Accessibility & contrast

On white

1.72
#AFD336 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.19
#AFD336 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD336
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD336#FFFFFF#000000##000000
##AFD3361.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C611
Deuteranopia (green-blind)
#DBC544
Tritanopia (blue-blind)
#B8C8B5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd336;
/* rgb */ color: rgb(175, 211, 54);
/* oklch */ color: oklch(81.3% 0.179 122.0);
Tailwind
colors: {
  custom: {
    50: '#cbe079',
    500: '#afd336',
    950: '#000000',
  },
}
SCSS
$custom: #afd336;
$custom-light: #cbe079;
$custom-dark: #000000;
JSON
{
  "hex": "#afd336",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 54
  },
  "hsl": {
    "h": 73.758,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.8131,
    "c": 0.17917,
    "h": 122
  },
  "luminance": 0.55969
}

Semantic roles & 50–950 ramp

primary
#AFD336
secondary
#42307D
accent
#41E767
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD336

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

Preview Lab → · Contrast checker → · Palette generator →

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