#AB5FCC#AB5FCC

#AB5FCC is a mid, vivid purple. Relative luminance 0.212; OKLCH L 61.7% C 0.174 H 314.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AB5FCC
RGBrgb(171, 95, 204)
HSLhsl(282, 52%, 59%)
HSVhsv(282, 53%, 80%)
CMYKcmyk(16.2%, 53.4%, 0%, 20%)
CIE-LABlab(53.17, 48.90, -44.28)
CIE-LCHlch(53.17, 65.97, 317.84°)
OKLaboklab(61.68% 0.122 -0.1236)
OKLCHoklch(61.68% 0.174 314.6)
XYZxyz(31.7841, 21.2029, 59.5333)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FCC #80CC5F
analogous
#745FCC #AB5FCC #CC5FB6
triadic
#AB5FCC #CCAB5F #5FCCAB
tetradic
#AB5FCC #CC745F #80CC5F #5FB6CC
square
#AB5FCC #CC745F #80CC5F #5FB6CC
split-complementary
#AB5FCC #B6CC5F #5FCC74
monochromatic
#6A2B86 #8F39B4 #AB5FCC #C38DDB #DCBCEA

Accessibility & contrast

On white

4.01
#AB5FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AB5FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FCC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FCC#FFFFFF#000000##000000
##AB5FCC1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#457BD0
Deuteranopia (green-blind)
#5D81C9
Tritanopia (blue-blind)
#A9718D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5fcc;
/* rgb */ color: rgb(171, 95, 204);
/* oklch */ color: oklch(61.7% 0.174 314.6);
Tailwind
colors: {
  custom: {
    50: '#c68fdc',
    500: '#ab5fcc',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fcc;
$custom-light: #c68fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fcc",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 204
  },
  "hsl": {
    "h": 281.835,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61683,
    "c": 0.17365,
    "h": 314.6
  },
  "luminance": 0.21202
}

Semantic roles & 50–950 ramp

primary
#AB5FCC
secondary
#BBD9AE
accent
#DB4D78
background
#FCF9FD
surface
#F8F1FB
border
#D1CBD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #AB5FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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