#AFD545#AFD545

#AFD545 is a light, vivid yellow-green. Relative luminance 0.571; OKLCH L 81.9% C 0.172 H 123.0°. Best body text is #000000 at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#AFD545
RGBrgb(175, 213, 69)
HSLhsl(76, 63%, 55%)
HSVhsv(76, 68%, 84%)
CMYKcmyk(17.8%, 0%, 67.6%, 16.5%)
CIE-LABlab(80.25, -32.40, 64.02)
CIE-LCHlch(80.25, 71.75, 116.84°)
OKLaboklab(81.87% -0.094 0.1445)
OKLCHoklch(81.87% 0.172 123)
XYZxyz(42.5481, 57.1319, 14.4151)
Luminance0.5713 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD545 #6B45D5
analogous
#D5B345 #AFD545 #67D545
triadic
#AFD545 #45AFD5 #D545AF
tetradic
#AFD545 #45D5B3 #6B45D5 #D54567
square
#AFD545 #45D5B3 #6B45D5 #D54567
split-complementary
#AFD545 #4567D5 #B345D5
monochromatic
#68821D #8FB429 #AFD545 #C4E077 #DAECA9

Accessibility & contrast

On white

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

On black

12.43
#AFD545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD545
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD545#FFFFFF#000000##000000
##AFD5451.001.6912.4312.43
#FFFFFF1.691.0021.0021.00
#00000012.4321.001.001.00
##00000012.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C82F
Deuteranopia (green-blind)
#DCC750
Tritanopia (blue-blind)
#B8CBB8
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd545;
/* rgb */ color: rgb(175, 213, 69);
/* oklch */ color: oklch(81.9% 0.172 123.0);
Tailwind
colors: {
  custom: {
    50: '#cae280',
    500: '#afd545',
    950: '#000000',
  },
}
SCSS
$custom: #afd545;
$custom-light: #cae280;
$custom-dark: #000000;
JSON
{
  "hex": "#afd545",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 69
  },
  "hsl": {
    "h": 75.833,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81871,
    "c": 0.17235,
    "h": 123
  },
  "luminance": 0.57132
}

Semantic roles & 50–950 ramp

primary
#AFD545
secondary
#4B3589
accent
#42E66D
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD545

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

Preview Lab → · Contrast checker → · Palette generator →

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