#AB45E6#AB45E6

#AB45E6 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 60.1% C 0.236 H 310.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB45E6
RGBrgb(171, 69, 230)
HSLhsl(278, 76%, 59%)
HSVhsv(278, 70%, 90%)
CMYKcmyk(25.7%, 70%, 0%, 9.8%)
CIE-LABlab(50.25, 66.58, -63.73)
CIE-LCHlch(50.25, 92.17, 316.26°)
OKLaboklab(60.06% 0.1519 -0.1804)
OKLCHoklch(60.06% 0.236 310.1)
XYZxyz(33.2028, 18.6280, 76.6940)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45E6 #80E645
analogous
#5A45E6 #AB45E6 #E645D1
triadic
#AB45E6 #E6AB45 #45E6AB
tetradic
#AB45E6 #E65A45 #80E645 #45D1E6
square
#AB45E6 #E65A45 #80E645 #45D1E6
split-complementary
#AB45E6 #D1E645 #45E65A
monochromatic
#6A159C #8F1CD2 #AB45E6 #C37BED #DCB1F5

Accessibility & contrast

On white

4.44
#AB45E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AB45E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB45E6
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45E6#FFFFFF#000000##000000
##AB45E61.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#2779E3
Tritanopia (blue-blind)
#A36991
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab45e6;
/* rgb */ color: rgb(171, 69, 230);
/* oklch */ color: oklch(60.1% 0.236 310.1);
Tailwind
colors: {
  custom: {
    50: '#c981ef',
    500: '#ab45e6',
    950: '#000000',
  },
}
SCSS
$custom: #ab45e6;
$custom-light: #c981ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45e6",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 278.012,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60059,
    "c": 0.23581,
    "h": 310.1
  },
  "luminance": 0.18627
}

Semantic roles & 50–950 ramp

primary
#AB45E6
secondary
#BBE3A4
accent
#F3357B
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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