#AB4ECB#AB4ECB

#AB4ECB is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.3% C 0.198 H 316.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AB4ECB
RGBrgb(171, 78, 203)
HSLhsl(285, 55%, 55%)
HSVhsv(285, 62%, 80%)
CMYKcmyk(15.8%, 61.6%, 0%, 20.4%)
CIE-LABlab(50.00, 57.06, -48.75)
CIE-LCHlch(50.00, 75.05, 319.49°)
OKLaboklab(59.35% 0.1437 -0.1365)
OKLCHoklch(59.35% 0.198 316.5)
XYZxyz(30.2969, 18.4196, 58.4478)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ECB #6ECB4E
analogous
#6C4ECB #AB4ECB #CB4EAC
triadic
#AB4ECB #CBAB4E #4ECBAB
tetradic
#AB4ECB #CB6C4E #6ECB4E #4EACCB
square
#AB4ECB #CB6C4E #6ECB4E #4EACCB
split-complementary
#AB4ECB #ACCB4E #4ECB6C
monochromatic
#64247B #8B32AA #AB4ECB #C17DD9 #D8ADE7

Accessibility & contrast

On white

4.48
#AB4ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#AB4ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4ECB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ECB#FFFFFF#000000##000000
##AB4ECB1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2771CF
Deuteranopia (green-blind)
#4F7AC8
Tritanopia (blue-blind)
#A96485
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab4ecb;
/* rgb */ color: rgb(171, 78, 203);
/* oklch */ color: oklch(59.3% 0.198 316.5);
Tailwind
colors: {
  custom: {
    50: '#c785db',
    500: '#ab4ecb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ecb;
$custom-light: #c785db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ecb",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 203
  },
  "hsl": {
    "h": 284.64,
    "s": 54.585,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59348,
    "c": 0.1982,
    "h": 316.5
  },
  "luminance": 0.18419
}

Semantic roles & 50–950 ramp

primary
#AB4ECB
secondary
#AED5A0
accent
#DE4A70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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