#AB5FCA#AB5FCA

#AB5FCA is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.6% C 0.172 H 315.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AB5FCA
RGBrgb(171, 95, 202)
HSLhsl(283, 50%, 58%)
HSVhsv(283, 53%, 79%)
CMYKcmyk(15.3%, 53%, 0%, 20.8%)
CIE-LABlab(53.07, 48.48, -43.30)
CIE-LCHlch(53.07, 65.00, 318.23°)
OKLaboklab(61.57% 0.1218 -0.1207)
OKLCHoklch(61.57% 0.172 315.3)
XYZxyz(31.5458, 21.1076, 58.2781)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FCA #7ECA5F
analogous
#755FCA #AB5FCA #CA5FB3
triadic
#AB5FCA #CAAB5F #5FCAAB
tetradic
#AB5FCA #CA755F #7ECA5F #5FB3CA
square
#AB5FCA #CA755F #7ECA5F #5FB3CA
split-complementary
#AB5FCA #B3CA5F #5FCA75
monochromatic
#6A2B83 #8F3BB1 #AB5FCA #C38DD9 #DBBBE8

Accessibility & contrast

On white

4.02
#AB5FCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#AB5FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FCA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FCA#FFFFFF#000000##000000
##AB5FCA1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ACE
Deuteranopia (green-blind)
#5F81C7
Tritanopia (blue-blind)
#A9708C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5fca;
/* rgb */ color: rgb(171, 95, 202);
/* oklch */ color: oklch(61.6% 0.172 315.3);
Tailwind
colors: {
  custom: {
    50: '#c68fda',
    500: '#ab5fca',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fca;
$custom-light: #c68fda;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fca",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 282.617,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61572,
    "c": 0.17151,
    "h": 315.3
  },
  "luminance": 0.21107
}

Semantic roles & 50–950 ramp

primary
#AB5FCA
secondary
#B9D8AD
accent
#DA4E77
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AB5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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