#AB45E1#AB45E1

#AB45E1 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.7% C 0.231 H 311.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AB45E1
RGBrgb(171, 69, 225)
HSLhsl(279, 72%, 58%)
HSVhsv(279, 69%, 88%)
CMYKcmyk(24%, 69.3%, 0%, 11.8%)
CIE-LABlab(49.92, 65.54, -61.43)
CIE-LCHlch(49.92, 89.83, 316.85°)
OKLaboklab(59.72% 0.1525 -0.1736)
OKLCHoklch(59.72% 0.231 311.3)
XYZxyz(32.5108, 18.3512, 73.0491)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45E1 #7BE145
analogous
#5D45E1 #AB45E1 #E145C9
triadic
#AB45E1 #E1AB45 #45E1AB
tetradic
#AB45E1 #E15D45 #7BE145 #45C9E1
square
#AB45E1 #E15D45 #7BE145 #45C9E1
split-complementary
#AB45E1 #C9E145 #45E15D
monochromatic
#691894 #8E20C8 #AB45E1 #C37AE9 #DBAEF2

Accessibility & contrast

On white

4.50
#AB45E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#AB45E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB45E1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45E1#FFFFFF#000000##000000
##AB45E11.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#3079DE
Tritanopia (blue-blind)
#A4678E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab45e1;
/* rgb */ color: rgb(171, 69, 225);
/* oklch */ color: oklch(59.7% 0.231 311.3);
Tailwind
colors: {
  custom: {
    50: '#c981eb',
    500: '#ab45e1',
    950: '#000000',
  },
}
SCSS
$custom: #ab45e1;
$custom-light: #c981eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45e1",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 279.231,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5972,
    "c": 0.23108,
    "h": 311.3
  },
  "luminance": 0.1835
}

Semantic roles & 50–950 ramp

primary
#AB45E1
secondary
#B7E0A2
accent
#EF3978
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB45E1

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

Preview Lab → · Contrast checker → · Palette generator →

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