#AB46CB#AB46CB

#AB46CB is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.209 H 317.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AB46CB
RGBrgb(171, 70, 203)
HSLhsl(286, 56%, 54%)
HSVhsv(286, 66%, 80%)
CMYKcmyk(15.8%, 65.5%, 0%, 20.4%)
CIE-LABlab(48.70, 60.66, -50.83)
CIE-LCHlch(48.70, 79.13, 320.04°)
OKLaboklab(58.41% 0.153 -0.1425)
OKLCHoklch(58.41% 0.209 317)
XYZxyz(29.7627, 17.3512, 58.2697)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB46CB #66CB46
analogous
#6846CB #AB46CB #CB46A8
triadic
#AB46CB #CBAB46 #46CBAB
tetradic
#AB46CB #CB6846 #66CB46 #46A8CB
square
#AB46CB #CB6846 #66CB46 #46A8CB
split-complementary
#AB46CB #A8CB46 #46CB68
monochromatic
#612176 #892EA5 #AB46CB #C176D8 #D6A6E6

Accessibility & contrast

On white

4.70
#AB46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AB46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB46CB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB46CB#FFFFFF#000000##FFFFFF
##AB46CB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6DCF
Deuteranopia (green-blind)
#4977C8
Tritanopia (blue-blind)
#AA5F83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab46cb;
/* rgb */ color: rgb(171, 70, 203);
/* oklch */ color: oklch(58.4% 0.209 317.0);
Tailwind
colors: {
  custom: {
    50: '#c780db',
    500: '#ab46cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab46cb;
$custom-light: #c780db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab46cb",
  "rgb": {
    "r": 171,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 285.564,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58408,
    "c": 0.20913,
    "h": 317
  },
  "luminance": 0.1735
}

Semantic roles & 50–950 ramp

primary
#AB46CB
secondary
#A8D39A
accent
#DF486D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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