#AB45E8#AB45E8

#AB45E8 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 60.2% C 0.238 H 309.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB45E8
RGBrgb(171, 69, 232)
HSLhsl(278, 78%, 59%)
HSVhsv(278, 70%, 91%)
CMYKcmyk(26.3%, 70.3%, 0%, 9%)
CIE-LABlab(50.38, 67.00, -64.64)
CIE-LCHlch(50.38, 93.10, 316.03°)
OKLaboklab(60.2% 0.1517 -0.183)
OKLCHoklch(60.2% 0.238 309.6)
XYZxyz(33.4853, 18.7410, 78.1817)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45E8 #82E845
analogous
#5A45E8 #AB45E8 #E845D4
triadic
#AB45E8 #E8AB45 #45E8AB
tetradic
#AB45E8 #E85A45 #82E845 #45D4E8
square
#AB45E8 #E85A45 #82E845 #45D4E8
split-complementary
#AB45E8 #D4E845 #45E85A
monochromatic
#6B149F #8F1AD5 #AB45E8 #C47BEF #DCB2F5

Accessibility & contrast

On white

4.42
#AB45E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AB45E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB45E8
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45E8#FFFFFF#000000##000000
##AB45E81.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#2379E4
Tritanopia (blue-blind)
#A26992
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab45e8;
/* rgb */ color: rgb(171, 69, 232);
/* oklch */ color: oklch(60.2% 0.238 309.6);
Tailwind
colors: {
  custom: {
    50: '#c981f0',
    500: '#ab45e8',
    950: '#000000',
  },
}
SCSS
$custom: #ab45e8;
$custom-light: #c981f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45e8",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 277.546,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60197,
    "c": 0.2377,
    "h": 309.6
  },
  "luminance": 0.1874
}

Semantic roles & 50–950 ramp

primary
#AB45E8
secondary
#BCE4A4
accent
#F4337C
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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