#AB48E4#AB48E4

#AB48E4 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.2% C 0.230 H 310.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB48E4
RGBrgb(171, 72, 228)
HSLhsl(278, 74%, 59%)
HSVhsv(278, 68%, 89%)
CMYKcmyk(25%, 68.4%, 0%, 10.6%)
CIE-LABlab(50.56, 64.91, -62.09)
CIE-LCHlch(50.56, 89.82, 316.27°)
OKLaboklab(60.24% 0.1491 -0.1756)
OKLCHoklch(60.24% 0.23 310.3)
XYZxyz(33.1128, 18.8948, 75.2865)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48E4 #81E448
analogous
#5D48E4 #AB48E4 #E448CF
triadic
#AB48E4 #E4AB48 #48E4AB
tetradic
#AB48E4 #E45D48 #81E448 #48CFE4
square
#AB48E4 #E45D48 #81E448 #48CFE4
split-complementary
#AB48E4 #CFE448 #48E45D
monochromatic
#6B179B #8F1FD0 #AB48E4 #C37DEC #DCB3F4

Accessibility & contrast

On white

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

On black

4.78
#AB48E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48E4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48E4#FFFFFF#000000##000000
##AB48E41.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#2F7AE1
Tritanopia (blue-blind)
#A36A91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab48e4;
/* rgb */ color: rgb(171, 72, 228);
/* oklch */ color: oklch(60.2% 0.230 310.3);
Tailwind
colors: {
  custom: {
    50: '#c982ed',
    500: '#ab48e4',
    950: '#000000',
  },
}
SCSS
$custom: #ab48e4;
$custom-light: #c982ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48e4",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 228
  },
  "hsl": {
    "h": 278.077,
    "s": 74.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60242,
    "c": 0.23034,
    "h": 310.3
  },
  "luminance": 0.18894
}

Semantic roles & 50–950 ramp

primary
#AB48E4
secondary
#BCE3A5
accent
#F1377B
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB48E4

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

Preview Lab → · Contrast checker → · Palette generator →

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