#AB48EB#AB48EB

#AB48EB is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.7% C 0.237 H 308.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB48EB
RGBrgb(171, 72, 235)
HSLhsl(276, 80%, 60%)
HSVhsv(276, 69%, 92%)
CMYKcmyk(27.2%, 69.4%, 0%, 7.8%)
CIE-LABlab(51.03, 66.39, -65.29)
CIE-LCHlch(51.03, 93.12, 315.48°)
OKLaboklab(60.72% 0.1483 -0.185)
OKLCHoklch(60.72% 0.237 308.7)
XYZxyz(34.1043, 19.2914, 80.5082)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48EB #88EB48
analogous
#5A48EB #AB48EB #EB48D9
triadic
#AB48EB #EBAB48 #48EBAB
tetradic
#AB48EB #EB5A48 #88EB48 #48D9EB
square
#AB48EB #EB5A48 #88EB48 #48D9EB
split-complementary
#AB48EB #D9EB48 #48EB5A
monochromatic
#6C12A6 #9018DE #AB48EB #C47FF1 #DEB6F7

Accessibility & contrast

On white

4.32
#AB48EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AB48EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48EB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48EB#FFFFFF#000000##000000
##AB48EB1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#227BE7
Tritanopia (blue-blind)
#A16C95
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab48eb;
/* rgb */ color: rgb(171, 72, 235);
/* oklch */ color: oklch(60.7% 0.237 308.7);
Tailwind
colors: {
  custom: {
    50: '#c983f2',
    500: '#ab48eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab48eb;
$custom-light: #c983f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48eb",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 276.442,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60719,
    "c": 0.23708,
    "h": 308.7
  },
  "luminance": 0.19291
}

Semantic roles & 50–950 ramp

primary
#AB48EB
secondary
#C1E7A8
accent
#DD095C
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB48EB

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

Preview Lab → · Contrast checker → · Palette generator →

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