#AB5FD7#AB5FD7

#AB5FD7 is a light, vivid violet. Relative luminance 0.217; OKLCH L 62.3% C 0.185 H 311.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AB5FD7
RGBrgb(171, 95, 215)
HSLhsl(278, 60%, 61%)
HSVhsv(278, 56%, 84%)
CMYKcmyk(20.5%, 55.8%, 0%, 15.7%)
CIE-LABlab(53.76, 51.26, -49.61)
CIE-LCHlch(53.76, 71.34, 315.94°)
OKLaboklab(62.31% 0.1227 -0.1391)
OKLCHoklch(62.31% 0.185 311.4)
XYZxyz(33.1503, 21.7494, 66.7285)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FD7 #8BD75F
analogous
#6F5FD7 #AB5FD7 #D75FC7
triadic
#AB5FD7 #D7AB5F #5FD7AB
tetradic
#AB5FD7 #D76F5F #8BD75F #5FC7D7
square
#AB5FD7 #D76F5F #8BD75F #5FC7D7
split-complementary
#AB5FD7 #C7D75F #5FD76F
monochromatic
#6D2696 #9032C7 #AB5FD7 #C590E3 #DEC1EF

Accessibility & contrast

On white

3.93
#AB5FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#AB5FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FD7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FD7#FFFFFF#000000##000000
##AB5FD71.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7DDB
Deuteranopia (green-blind)
#5682D4
Tritanopia (blue-blind)
#A67492
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ab5fd7;
/* rgb */ color: rgb(171, 95, 215);
/* oklch */ color: oklch(62.3% 0.185 311.4);
Tailwind
colors: {
  custom: {
    50: '#c78fe4',
    500: '#ab5fd7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fd7;
$custom-light: #c78fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fd7",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 215
  },
  "hsl": {
    "h": 278,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62307,
    "c": 0.18548,
    "h": 311.4
  },
  "luminance": 0.21749
}

Semantic roles & 50–950 ramp

primary
#AB5FD7
secondary
#C3E0B2
accent
#C81E5C
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#130D15
muted
#827E84

Preview Lab

Preview with #AB5FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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