#AFD335#AFD335

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

Color values

HEX#AFD335
RGBrgb(175, 211, 53)
HSLhsl(74, 64%, 52%)
HSVhsv(74, 75%, 83%)
CMYKcmyk(17.1%, 0%, 74.9%, 17.3%)
CIE-LABlab(79.59, -32.35, 68.99)
CIE-LCHlch(79.59, 76.20, 115.13°)
OKLaboklab(81.3% -0.0952 0.1524)
OKLCHoklch(81.3% 0.18 122)
XYZxyz(41.6167, 55.9595, 11.9763)
Luminance0.5596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD335 #5935D3
analogous
#D3A835 #AFD335 #60D335
triadic
#AFD335 #35AFD3 #D335AF
tetradic
#AFD335 #35D3A8 #5935D3 #D33560
square
#AFD335 #35D3A8 #5935D3 #D33560
split-complementary
#AFD335 #3560D3 #A835D3
monochromatic
#607419 #89A724 #AFD335 #C3DE67 #D7E99A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD335#FFFFFF#000000##000000
##AFD3351.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)
#E0C60E
Deuteranopia (green-blind)
#DBC544
Tritanopia (blue-blind)
#B8C8B5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd335;
/* rgb */ color: rgb(175, 211, 53);
/* oklch */ color: oklch(81.3% 0.180 122.0);
Tailwind
colors: {
  custom: {
    50: '#cbe078',
    500: '#afd335',
    950: '#000000',
  },
}
SCSS
$custom: #afd335;
$custom-light: #cbe078;
$custom-dark: #000000;
JSON
{
  "hex": "#afd335",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 53
  },
  "hsl": {
    "h": 73.671,
    "s": 64.228,
    "l": 51.765
  },
  "oklch": {
    "l": 0.81304,
    "c": 0.1797,
    "h": 122
  },
  "luminance": 0.5596
}

Semantic roles & 50–950 ramp

primary
#AFD335
secondary
#412F7D
accent
#41E767
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD335

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

Preview Lab → · Contrast checker → · Palette generator →

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