#AB45E2#AB45E2

#AB45E2 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.8% C 0.232 H 311.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AB45E2
RGBrgb(171, 69, 226)
HSLhsl(279, 73%, 58%)
HSVhsv(279, 69%, 89%)
CMYKcmyk(24.3%, 69.5%, 0%, 11.4%)
CIE-LABlab(49.98, 65.75, -61.89)
CIE-LCHlch(49.98, 90.30, 316.73°)
OKLaboklab(59.79% 0.1524 -0.175)
OKLCHoklch(59.79% 0.232 311.1)
XYZxyz(32.6476, 18.4059, 73.7696)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45E2 #7CE245
analogous
#5C45E2 #AB45E2 #E245CA
triadic
#AB45E2 #E2AB45 #45E2AB
tetradic
#AB45E2 #E25C45 #7CE245 #45CAE2
square
#AB45E2 #E25C45 #7CE245 #45CAE2
split-complementary
#AB45E2 #CAE245 #45E25C
monochromatic
#691795 #8E20CA #AB45E2 #C37AEA #DBAFF3

Accessibility & contrast

On white

4.49
#AB45E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#AB45E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB45E2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45E2#FFFFFF#000000##000000
##AB45E21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#2E79DF
Tritanopia (blue-blind)
#A4678F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab45e2;
/* rgb */ color: rgb(171, 69, 226);
/* oklch */ color: oklch(59.8% 0.232 311.1);
Tailwind
colors: {
  custom: {
    50: '#c981ec',
    500: '#ab45e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab45e2;
$custom-light: #c981ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45e2",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 278.981,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59787,
    "c": 0.23203,
    "h": 311.1
  },
  "luminance": 0.18405
}

Semantic roles & 50–950 ramp

primary
#AB45E2
secondary
#B8E1A2
accent
#F03878
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB45E2

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

Preview Lab → · Contrast checker → · Palette generator →

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