#AB48DF#AB48DF

#AB48DF is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.9% C 0.226 H 311.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AB48DF
RGBrgb(171, 72, 223)
HSLhsl(279, 70%, 58%)
HSVhsv(279, 68%, 87%)
CMYKcmyk(23.3%, 67.7%, 0%, 12.5%)
CIE-LABlab(50.24, 63.86, -59.78)
CIE-LCHlch(50.24, 87.47, 316.89°)
OKLaboklab(59.91% 0.1496 -0.1688)
OKLCHoklch(59.91% 0.226 311.6)
XYZxyz(32.4288, 18.6212, 71.6837)
Luminance0.1862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48DF #7CDF48
analogous
#5F48DF #AB48DF #DF48C7
triadic
#AB48DF #DFAB48 #48DFAB
tetradic
#AB48DF #DF5F48 #7CDF48 #48C7DF
square
#AB48DF #DF5F48 #7CDF48 #48C7DF
split-complementary
#AB48DF #C7DF48 #48DF5F
monochromatic
#691A93 #8E23C7 #AB48DF #C37CE8 #DBB0F1

Accessibility & contrast

On white

4.45
#AB48DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AB48DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48DF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48DF#FFFFFF#000000##000000
##AB48DF1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#3679DC
Tritanopia (blue-blind)
#A5688E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab48df;
/* rgb */ color: rgb(171, 72, 223);
/* oklch */ color: oklch(59.9% 0.226 311.6);
Tailwind
colors: {
  custom: {
    50: '#c882ea',
    500: '#ab48df',
    950: '#000000',
  },
}
SCSS
$custom: #ab48df;
$custom-light: #c882ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48df",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 279.338,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59908,
    "c": 0.22554,
    "h": 311.6
  },
  "luminance": 0.1862
}

Semantic roles & 50–950 ramp

primary
#AB48DF
secondary
#B8E0A3
accent
#ED3B78
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB48DF

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

Preview Lab → · Contrast checker → · Palette generator →

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