#AB4FDB#AB4FDB

#AB4FDB is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.5% C 0.213 H 312.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB4FDB
RGBrgb(171, 79, 219)
HSLhsl(279, 66%, 58%)
HSVhsv(279, 64%, 86%)
CMYKcmyk(21.9%, 63.9%, 0%, 14.1%)
CIE-LABlab(51.11, 59.91, -56.11)
CIE-LCHlch(51.11, 82.08, 316.88°)
OKLaboklab(60.45% 0.1422 -0.158)
OKLCHoklch(60.45% 0.213 312)
XYZxyz(32.3744, 19.3652, 69.0365)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FDB #7FDB4F
analogous
#654FDB #AB4FDB #DB4FC5
triadic
#AB4FDB #DBAB4F #4FDBAB
tetradic
#AB4FDB #DB654F #7FDB4F #4FC5DB
square
#AB4FDB #DB654F #7FDB4F #4FC5DB
split-complementary
#AB4FDB #C5DB4F #4FDB65
monochromatic
#6A1E92 #8F28C5 #AB4FDB #C382E5 #DBB5F0

Accessibility & contrast

On white

4.31
#AB4FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AB4FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FDB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FDB#FFFFFF#000000##000000
##AB4FDB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#437CD8
Tritanopia (blue-blind)
#A56A8E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab4fdb;
/* rgb */ color: rgb(171, 79, 219);
/* oklch */ color: oklch(60.5% 0.213 312.0);
Tailwind
colors: {
  custom: {
    50: '#c886e7',
    500: '#ab4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fdb;
$custom-light: #c886e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fdb",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 279.429,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.2126,
    "h": 312
  },
  "luminance": 0.19364
}

Semantic roles & 50–950 ramp

primary
#AB4FDB
secondary
#BADFA7
accent
#E93F79
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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