#AB48E5#AB48E5

#AB48E5 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.3% C 0.231 H 310.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB48E5
RGBrgb(171, 72, 229)
HSLhsl(278, 75%, 59%)
HSVhsv(278, 69%, 90%)
CMYKcmyk(25.3%, 68.6%, 0%, 10.2%)
CIE-LABlab(50.63, 65.12, -62.55)
CIE-LCHlch(50.63, 90.29, 316.15°)
OKLaboklab(60.31% 0.149 -0.1769)
OKLCHoklch(60.31% 0.231 310.1)
XYZxyz(33.2521, 18.9505, 76.0197)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48E5 #82E548
analogous
#5D48E5 #AB48E5 #E548D1
triadic
#AB48E5 #E5AB48 #48E5AB
tetradic
#AB48E5 #E55D48 #82E548 #48D1E5
square
#AB48E5 #E55D48 #82E548 #48D1E5
split-complementary
#AB48E5 #D1E548 #48E55D
monochromatic
#6B169C #8F1ED2 #AB48E5 #C47EED #DCB3F4

Accessibility & contrast

On white

4.38
#AB48E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB48E5#FFFFFF#000000##000000
##AB48E51.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab48e5;
/* rgb */ color: rgb(171, 72, 229);
/* oklch */ color: oklch(60.3% 0.231 310.1);
Tailwind
colors: {
  custom: {
    50: '#c982ee',
    500: '#ab48e5',
    950: '#000000',
  },
}
SCSS
$custom: #ab48e5;
$custom-light: #c982ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48e5",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 229
  },
  "hsl": {
    "h": 277.834,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60309,
    "c": 0.2313,
    "h": 310.1
  },
  "luminance": 0.1895
}

Semantic roles & 50–950 ramp

primary
#AB48E5
secondary
#BCE3A6
accent
#F2367B
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB48E5

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

Preview Lab → · Contrast checker → · Palette generator →

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