#AB45EC#AB45EC

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

Color values

HEX#AB45EC
RGBrgb(171, 69, 236)
HSLhsl(277, 81%, 60%)
HSVhsv(277, 71%, 93%)
CMYKcmyk(27.5%, 70.8%, 0%, 7.5%)
CIE-LABlab(50.65, 67.85, -66.46)
CIE-LCHlch(50.65, 94.97, 315.59°)
OKLaboklab(60.47% 0.1511 -0.1884)
OKLCHoklch(60.47% 0.241 308.7)
XYZxyz(34.0599, 18.9709, 81.2081)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45EC #86EC45
analogous
#5845EC #AB45EC #EC45D9
triadic
#AB45EC #ECAB45 #45ECAB
tetradic
#AB45EC #EC5845 #86EC45 #45D9EC
square
#AB45EC #EC5845 #86EC45 #45D9EC
split-complementary
#AB45EC #D9EC45 #45EC58
monochromatic
#6C11A6 #9017DD #AB45EC #C47DF2 #DDB4F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB45EC#FFFFFF#000000##000000
##AB45EC1.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)
#0075F1
Deuteranopia (green-blind)
#197AE8
Tritanopia (blue-blind)
#A16B94
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab45ec;
/* rgb */ color: rgb(171, 69, 236);
/* oklch */ color: oklch(60.5% 0.241 308.7);
Tailwind
colors: {
  custom: {
    50: '#c981f3',
    500: '#ab45ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab45ec;
$custom-light: #c981f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45ec",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 236
  },
  "hsl": {
    "h": 276.647,
    "s": 81.463,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60474,
    "c": 0.24148,
    "h": 308.7
  },
  "luminance": 0.1897
}

Semantic roles & 50–950 ramp

primary
#AB45EC
secondary
#BFE7A6
accent
#F8307E
background
#FCF8FF
surface
#F9EFFE
border
#D2CAD6
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB45EC

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

Preview Lab → · Contrast checker → · Palette generator →

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