#AB48ED#AB48ED

#AB48ED is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.9% C 0.239 H 308.3°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AB48ED
RGBrgb(171, 72, 237)
HSLhsl(276, 82%, 61%)
HSVhsv(276, 70%, 93%)
CMYKcmyk(27.8%, 69.6%, 0%, 7.1%)
CIE-LABlab(51.16, 66.82, -66.20)
CIE-LCHlch(51.16, 94.06, 315.27°)
OKLaboklab(60.86% 0.148 -0.1876)
OKLCHoklch(60.86% 0.239 308.3)
XYZxyz(34.3949, 19.4076, 82.0385)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48ED #8AED48
analogous
#5848ED #AB48ED #ED48DD
triadic
#AB48ED #EDAB48 #48EDAB
tetradic
#AB48ED #ED5848 #8AED48 #48DDED
square
#AB48ED #ED5848 #8AED48 #48DDED
split-complementary
#AB48ED #DDED48 #48ED58
monochromatic
#6D11AA #9016E2 #AB48ED #C580F2 #DEB7F8

Accessibility & contrast

On white

4.30
#AB48ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AB48ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48ED
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48ED#FFFFFF#000000##000000
##AB48ED1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F2
Deuteranopia (green-blind)
#1D7BE9
Tritanopia (blue-blind)
#A16D96
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab48ed;
/* rgb */ color: rgb(171, 72, 237);
/* oklch */ color: oklch(60.9% 0.239 308.3);
Tailwind
colors: {
  custom: {
    50: '#c983f4',
    500: '#ab48ed',
    950: '#000000',
  },
}
SCSS
$custom: #ab48ed;
$custom-light: #c983f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48ed",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 237
  },
  "hsl": {
    "h": 276,
    "s": 82.09,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60857,
    "c": 0.239,
    "h": 308.3
  },
  "luminance": 0.19407
}

Semantic roles & 50–950 ramp

primary
#AB48ED
secondary
#C2E8A9
accent
#DE075D
background
#FCF8FF
surface
#F9EFFE
border
#D2CAD6
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB48ED

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

Preview Lab → · Contrast checker → · Palette generator →

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