#AB49EC#AB49EC

#AB49EC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.9% C 0.237 H 308.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB49EC
RGBrgb(171, 73, 236)
HSLhsl(276, 81%, 61%)
HSVhsv(276, 69%, 93%)
CMYKcmyk(27.5%, 69.1%, 0%, 7.5%)
CIE-LABlab(51.24, 66.18, -65.50)
CIE-LCHlch(51.24, 93.11, 315.30°)
OKLaboklab(60.9% 0.1472 -0.1856)
OKLCHoklch(60.9% 0.237 308.4)
XYZxyz(34.3143, 19.4797, 81.2929)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB49EC #8AEC49
analogous
#5949EC #AB49EC #EC49DB
triadic
#AB49EC #ECAB49 #49ECAB
tetradic
#AB49EC #EC5949 #8AEC49 #49DBEC
square
#AB49EC #EC5949 #8AEC49 #49DBEC
split-complementary
#AB49EC #DBEC49 #49EC59
monochromatic
#6D12A9 #9017E0 #AB49EC #C580F2 #DEB8F8

Accessibility & contrast

On white

4.29
#AB49EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB49EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB49EC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB49EC#FFFFFF#000000##000000
##AB49EC1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab49ec;
/* rgb */ color: rgb(171, 73, 236);
/* oklch */ color: oklch(60.9% 0.237 308.4);
Tailwind
colors: {
  custom: {
    50: '#c983f3',
    500: '#ab49ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab49ec;
$custom-light: #c983f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab49ec",
  "rgb": {
    "r": 171,
    "g": 73,
    "b": 236
  },
  "hsl": {
    "h": 276.074,
    "s": 81.095,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60895,
    "c": 0.23687,
    "h": 308.4
  },
  "luminance": 0.19479
}

Semantic roles & 50–950 ramp

primary
#AB49EC
secondary
#C2E7A9
accent
#DD085D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB49EC

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

Preview Lab → · Contrast checker → · Palette generator →

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