#AB45DF#AB45DF

#AB45DF is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.6% C 0.229 H 311.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB45DF
RGBrgb(171, 69, 223)
HSLhsl(280, 71%, 57%)
HSVhsv(280, 69%, 87%)
CMYKcmyk(23.3%, 69.1%, 0%, 12.5%)
CIE-LABlab(49.79, 65.13, -60.51)
CIE-LCHlch(49.79, 88.90, 317.11°)
OKLaboklab(59.59% 0.1527 -0.1709)
OKLCHoklch(59.59% 0.229 311.8)
XYZxyz(32.2395, 18.2427, 71.6206)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45DF #79DF45
analogous
#5E45DF #AB45DF #DF45C6
triadic
#AB45DF #DFAB45 #45DFAB
tetradic
#AB45DF #DF5E45 #79DF45 #45C6DF
square
#AB45DF #DF5E45 #79DF45 #45C6DF
split-complementary
#AB45DF #C6DF45 #45DF5E
monochromatic
#681991 #8E22C5 #AB45DF #C379E8 #DAADF1

Accessibility & contrast

On white

4.52
#AB45DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AB45DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB45DF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45DF#FFFFFF#000000##000000
##AB45DF1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E3
Deuteranopia (green-blind)
#3378DC
Tritanopia (blue-blind)
#A5668D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab45df;
/* rgb */ color: rgb(171, 69, 223);
/* oklch */ color: oklch(59.6% 0.229 311.8);
Tailwind
colors: {
  custom: {
    50: '#c881ea',
    500: '#ab45df',
    950: '#000000',
  },
}
SCSS
$custom: #ab45df;
$custom-light: #c881ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45df",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 279.74,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59585,
    "c": 0.22919,
    "h": 311.8
  },
  "luminance": 0.18242
}

Semantic roles & 50–950 ramp

primary
#AB45DF
secondary
#B6DFA1
accent
#ED3A77
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB45DF

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

Preview Lab → · Contrast checker → · Palette generator →

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