#AB46E2#AB46E2

#AB46E2 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.9% C 0.231 H 311.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB46E2
RGBrgb(171, 70, 226)
HSLhsl(279, 73%, 58%)
HSVhsv(279, 69%, 89%)
CMYKcmyk(24.3%, 69%, 0%, 11.4%)
CIE-LABlab(50.13, 65.33, -61.65)
CIE-LCHlch(50.13, 89.83, 316.66°)
OKLaboklab(59.89% 0.1514 -0.1743)
OKLCHoklch(59.89% 0.231 311)
XYZxyz(32.7096, 18.5300, 73.7903)
Luminance0.1853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46E2 #7DE246
analogous
#5D46E2 #AB46E2 #E246CB
triadic
#AB46E2 #E2AB46 #46E2AB
tetradic
#AB46E2 #E25D46 #7DE246 #46CBE2
square
#AB46E2 #E25D46 #7DE246 #46CBE2
split-complementary
#AB46E2 #CBE246 #46E25D
monochromatic
#691896 #8F20CB #AB46E2 #C37BEA #DBB0F3

Accessibility & contrast

On white

4.46
#AB46E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AB46E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB46E2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46E2#FFFFFF#000000##000000
##AB46E21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#2F79DF
Tritanopia (blue-blind)
#A4688F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab46e2;
/* rgb */ color: rgb(171, 70, 226);
/* oklch */ color: oklch(59.9% 0.231 311.0);
Tailwind
colors: {
  custom: {
    50: '#c981ec',
    500: '#ab46e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab46e2;
$custom-light: #c981ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46e2",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 226
  },
  "hsl": {
    "h": 278.846,
    "s": 72.897,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59893,
    "c": 0.23084,
    "h": 311
  },
  "luminance": 0.18529
}

Semantic roles & 50–950 ramp

primary
#AB46E2
secondary
#B9E1A3
accent
#F03879
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB46E2

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

Preview Lab → · Contrast checker → · Palette generator →

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