#AB48EC#AB48EC

#AB48EC is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.8% C 0.238 H 308.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB48EC
RGBrgb(171, 72, 236)
HSLhsl(276, 81%, 60%)
HSVhsv(276, 69%, 93%)
CMYKcmyk(27.5%, 69.5%, 0%, 7.5%)
CIE-LABlab(51.09, 66.61, -65.74)
CIE-LCHlch(51.09, 93.59, 315.37°)
OKLaboklab(60.79% 0.1482 -0.1863)
OKLCHoklch(60.79% 0.238 308.5)
XYZxyz(34.2492, 19.3493, 81.2712)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB48EC #89EC48
analogous
#5948EC #AB48EC #EC48DB
triadic
#AB48EC #ECAB48 #48ECAB
tetradic
#AB48EC #EC5948 #89EC48 #48DBEC
square
#AB48EC #EC5948 #89EC48 #48DBEC
split-complementary
#AB48EC #DBEC48 #48EC59
monochromatic
#6C11A8 #9017E0 #AB48EC #C47FF2 #DEB7F8

Accessibility & contrast

On white

4.31
#AB48EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AB48EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB48EC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB48EC#FFFFFF#000000##000000
##AB48EC1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#207BE8
Tritanopia (blue-blind)
#A16D95
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab48ec;
/* rgb */ color: rgb(171, 72, 236);
/* oklch */ color: oklch(60.8% 0.238 308.5);
Tailwind
colors: {
  custom: {
    50: '#c983f3',
    500: '#ab48ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab48ec;
$custom-light: #c983f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab48ec",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 236
  },
  "hsl": {
    "h": 276.22,
    "s": 81.188,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60788,
    "c": 0.23804,
    "h": 308.5
  },
  "luminance": 0.19349
}

Semantic roles & 50–950 ramp

primary
#AB48EC
secondary
#C1E7A9
accent
#DE085D
background
#FCF8FF
surface
#F9EFFE
border
#D2CAD6
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB48EC

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

Preview Lab → · Contrast checker → · Palette generator →

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