#AB4CDB#AB4CDB

#AB4CDB is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.1% C 0.217 H 312.2°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB4CDB
RGBrgb(171, 76, 219)
HSLhsl(280, 67%, 58%)
HSVhsv(280, 65%, 86%)
CMYKcmyk(21.9%, 65.3%, 0%, 14.1%)
CIE-LABlab(50.62, 61.27, -56.90)
CIE-LCHlch(50.62, 83.62, 317.12°)
OKLaboklab(60.1% 0.1456 -0.1603)
OKLCHoklch(60.1% 0.217 312.2)
XYZxyz(32.1629, 18.9421, 68.9660)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CDB #7CDB4C
analogous
#634CDB #AB4CDB #DB4CC4
triadic
#AB4CDB #DBAB4C #4CDBAB
tetradic
#AB4CDB #DB634C #7CDB4C #4CC4DB
square
#AB4CDB #DB634C #7CDB4C #4CC4DB
split-complementary
#AB4CDB #C4DB4C #4CDB63
monochromatic
#691D90 #8E27C3 #AB4CDB #C37FE5 #DBB2EF

Accessibility & contrast

On white

4.39
#AB4CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AB4CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CDB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CDB#FFFFFF#000000##000000
##AB4CDB1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#3F7AD8
Tritanopia (blue-blind)
#A6698D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab4cdb;
/* rgb */ color: rgb(171, 76, 219);
/* oklch */ color: oklch(60.1% 0.217 312.2);
Tailwind
colors: {
  custom: {
    50: '#c884e7',
    500: '#ab4cdb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cdb;
$custom-light: #c884e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cdb",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 279.86,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.601,
    "c": 0.21658,
    "h": 312.2
  },
  "luminance": 0.18941
}

Semantic roles & 50–950 ramp

primary
#AB4CDB
secondary
#B8DEA5
accent
#E93E78
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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