#AB45F1#AB45F1

#AB45F1 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.8% C 0.246 H 307.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AB45F1
RGBrgb(171, 69, 241)
HSLhsl(276, 86%, 61%)
HSVhsv(276, 71%, 95%)
CMYKcmyk(29%, 71.4%, 0%, 5.5%)
CIE-LABlab(51.00, 68.91, -68.71)
CIE-LCHlch(51.00, 97.31, 315.08°)
OKLaboklab(60.83% 0.1503 -0.195)
OKLCHoklch(60.83% 0.246 307.6)
XYZxyz(34.7965, 19.2655, 85.0876)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45F1 #8BF145
analogous
#5545F1 #AB45F1 #F145E1
triadic
#AB45F1 #F1AB45 #45F1AB
tetradic
#AB45F1 #F15545 #8BF145 #45E1F1
square
#AB45F1 #F15545 #8BF145 #45E1F1
split-complementary
#AB45F1 #E1F145 #45F155
monochromatic
#6D0DAE #9011E7 #AB45F1 #C57EF5 #DEB7FA

Accessibility & contrast

On white

4.33
#AB45F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#AB45F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB45F1
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45F1#FFFFFF#000000##000000
##AB45F11.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F6
Deuteranopia (green-blind)
#017AED
Tritanopia (blue-blind)
#A06D97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab45f1;
/* rgb */ color: rgb(171, 69, 241);
/* oklch */ color: oklch(60.8% 0.246 307.6);
Tailwind
colors: {
  custom: {
    50: '#c981f7',
    500: '#ab45f1',
    950: '#000000',
  },
}
SCSS
$custom: #ab45f1;
$custom-light: #c981f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45f1",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 241
  },
  "hsl": {
    "h": 275.581,
    "s": 86,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60826,
    "c": 0.24622,
    "h": 307.6
  },
  "luminance": 0.19265
}

Semantic roles & 50–950 ramp

primary
#AB45F1
secondary
#C3E9A8
accent
#E3035E
background
#FCF8FF
surface
#F9EFFF
border
#D2CAD7
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB45F1

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

Preview Lab → · Contrast checker → · Palette generator →

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