#AFD538#AFD538

#AFD538 is a light, vivid yellow-green. Relative luminance 0.570; OKLCH L 81.8% C 0.180 H 122.6°. Best body text is #000000 at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#AFD538
RGBrgb(175, 213, 56)
HSLhsl(75, 65%, 53%)
HSVhsv(75, 74%, 84%)
CMYKcmyk(17.8%, 0%, 73.7%, 16.5%)
CIE-LABlab(80.17, -33.13, 68.57)
CIE-LCHlch(80.17, 76.15, 115.79°)
OKLaboklab(81.78% -0.0971 0.152)
OKLCHoklch(81.78% 0.18 122.6)
XYZxyz(42.1878, 56.9878, 12.5178)
Luminance0.5699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD538 #5E38D5
analogous
#D5AC38 #AFD538 #61D538
triadic
#AFD538 #38AFD5 #D538AF
tetradic
#AFD538 #38D5AC #5E38D5 #D53861
square
#AFD538 #38D5AC #5E38D5 #D53861
split-complementary
#AFD538 #3861D5 #AC38D5
monochromatic
#62791A #8BAC24 #AFD538 #C3E06B #D8EA9D

Accessibility & contrast

On white

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

On black

12.40
#AFD538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD538
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD538#FFFFFF#000000##000000
##AFD5381.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C816
Deuteranopia (green-blind)
#DDC746
Tritanopia (blue-blind)
#B8CAB7
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd538;
/* rgb */ color: rgb(175, 213, 56);
/* oklch */ color: oklch(81.8% 0.180 122.6);
Tailwind
colors: {
  custom: {
    50: '#cbe27a',
    500: '#afd538',
    950: '#000000',
  },
}
SCSS
$custom: #afd538;
$custom-light: #cbe27a;
$custom-dark: #000000;
JSON
{
  "hex": "#afd538",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 56
  },
  "hsl": {
    "h": 74.522,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.81779,
    "c": 0.18038,
    "h": 122.6
  },
  "luminance": 0.56988
}

Semantic roles & 50–950 ramp

primary
#AFD538
secondary
#443081
accent
#40E868
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD538

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

Preview Lab → · Contrast checker → · Palette generator →

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