#AFD340#AFD340

#AFD340 is a light, vivid yellow-green. Relative luminance 0.561; OKLCH L 81.4% C 0.173 H 122.3°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#AFD340
RGBrgb(175, 211, 64)
HSLhsl(75, 63%, 54%)
HSVhsv(75, 70%, 83%)
CMYKcmyk(17.1%, 0%, 69.7%, 17.3%)
CIE-LABlab(79.66, -31.77, 65.28)
CIE-LCHlch(79.66, 72.60, 115.95°)
OKLaboklab(81.38% -0.0927 0.1464)
OKLCHoklch(81.38% 0.173 122.3)
XYZxyz(41.8994, 56.0725, 13.4652)
Luminance0.5607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD340 #6440D3
analogous
#D3AE40 #AFD340 #66D340
triadic
#AFD340 #40AFD3 #D340AF
tetradic
#AFD340 #40D3AE #6440D3 #D34066
square
#AFD340 #40D3AE #6440D3 #D34066
split-complementary
#AFD340 #4066D3 #AE40D3
monochromatic
#657C1D #8DAE28 #AFD340 #C4DE72 #D9EAA3

Accessibility & contrast

On white

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

On black

12.21
#AFD340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD340
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD340#FFFFFF#000000##000000
##AFD3401.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC628
Deuteranopia (green-blind)
#DBC54C
Tritanopia (blue-blind)
#B8C8B6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd340;
/* rgb */ color: rgb(175, 211, 64);
/* oklch */ color: oklch(81.4% 0.173 122.3);
Tailwind
colors: {
  custom: {
    50: '#cae07e',
    500: '#afd340',
    950: '#000000',
  },
}
SCSS
$custom: #afd340;
$custom-light: #cae07e;
$custom-dark: #000000;
JSON
{
  "hex": "#afd340",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 64
  },
  "hsl": {
    "h": 74.694,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81377,
    "c": 0.17325,
    "h": 122.3
  },
  "luminance": 0.56073
}

Semantic roles & 50–950 ramp

primary
#AFD340
secondary
#473384
accent
#42E66A
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD340

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

Preview Lab → · Contrast checker → · Palette generator →

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