#AFD540#AFD540

#AFD540 is a light, vivid yellow-green. Relative luminance 0.571; OKLCH L 81.8% C 0.176 H 122.8°. Best body text is #000000 at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#AFD540
RGBrgb(175, 213, 64)
HSLhsl(75, 64%, 54%)
HSVhsv(75, 70%, 84%)
CMYKcmyk(17.8%, 0%, 70%, 16.5%)
CIE-LABlab(80.22, -32.70, 65.84)
CIE-LCHlch(80.22, 73.52, 116.41°)
OKLaboklab(81.83% -0.0952 0.1476)
OKLCHoklch(81.83% 0.176 122.8)
XYZxyz(42.3994, 57.0724, 13.6319)
Luminance0.5707 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD540 #6640D5
analogous
#D5B140 #AFD540 #65D540
triadic
#AFD540 #40AFD5 #D540AF
tetradic
#AFD540 #40D5B1 #6640D5 #D54065
square
#AFD540 #40D5B1 #6640D5 #D54065
split-complementary
#AFD540 #4065D5 #B140D5
monochromatic
#667F1C #8EB127 #AFD540 #C4E072 #D9EBA4

Accessibility & contrast

On white

1.69
#AFD540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.41
#AFD540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD540
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD540#FFFFFF#000000##000000
##AFD5401.001.6912.4112.41
#FFFFFF1.691.0021.0021.00
#00000012.4121.001.001.00
##00000012.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C827
Deuteranopia (green-blind)
#DCC74C
Tritanopia (blue-blind)
#B8CAB8
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd540;
/* rgb */ color: rgb(175, 213, 64);
/* oklch */ color: oklch(81.8% 0.176 122.8);
Tailwind
colors: {
  custom: {
    50: '#cae27e',
    500: '#afd540',
    950: '#000000',
  },
}
SCSS
$custom: #afd540;
$custom-light: #cae27e;
$custom-dark: #000000;
JSON
{
  "hex": "#afd540",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 75.302,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81833,
    "c": 0.17563,
    "h": 122.8
  },
  "luminance": 0.57073
}

Semantic roles & 50–950 ramp

primary
#AFD540
secondary
#483386
accent
#41E76B
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD540

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

Preview Lab → · Contrast checker → · Palette generator →

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