#AB4FD8#AB4FD8

#AB4FD8 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.3% C 0.210 H 312.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB4FD8
RGBrgb(171, 79, 216)
HSLhsl(280, 64%, 58%)
HSVhsv(280, 63%, 85%)
CMYKcmyk(20.8%, 63.4%, 0%, 15.3%)
CIE-LABlab(50.93, 59.28, -54.69)
CIE-LCHlch(50.93, 80.66, 317.30°)
OKLaboklab(60.27% 0.1423 -0.1539)
OKLCHoklch(60.27% 0.21 312.8)
XYZxyz(31.9831, 19.2086, 66.9753)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FD8 #7CD84F
analogous
#664FD8 #AB4FD8 #D84FC0
triadic
#AB4FD8 #D8AB4F #4FD8AB
tetradic
#AB4FD8 #D8664F #7CD84F #4FC0D8
square
#AB4FD8 #D8664F #7CD84F #4FC0D8
split-complementary
#AB4FD8 #C0D84F #4FD866
monochromatic
#691F8D #8E2ABF #AB4FD8 #C381E3 #DBB3EE

Accessibility & contrast

On white

4.34
#AB4FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AB4FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FD8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FD8#FFFFFF#000000##000000
##AB4FD81.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C74DC
Deuteranopia (green-blind)
#457BD5
Tritanopia (blue-blind)
#A6698D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab4fd8;
/* rgb */ color: rgb(171, 79, 216);
/* oklch */ color: oklch(60.3% 0.210 312.8);
Tailwind
colors: {
  custom: {
    50: '#c886e5',
    500: '#ab4fd8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fd8;
$custom-light: #c886e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fd8",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 280.292,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60265,
    "c": 0.20963,
    "h": 312.8
  },
  "luminance": 0.19208
}

Semantic roles & 50–950 ramp

primary
#AB4FD8
secondary
#B8DDA6
accent
#E74177
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB4FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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