#AB27EE#AB27EE

#AB27EE is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 58.2% C 0.271 H 310.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB27EE
RGBrgb(171, 39, 238)
HSLhsl(280, 85%, 54%)
HSVhsv(280, 84%, 93%)
CMYKcmyk(28.2%, 83.6%, 0%, 6.7%)
CIE-LABlab(47.34, 78.21, -72.96)
CIE-LCHlch(47.34, 106.96, 316.99°)
OKLaboklab(58.2% 0.174 -0.2073)
OKLCHoklch(58.2% 0.271 310)
XYZxyz(32.9496, 16.2827, 82.2795)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB27EE #6AEE27
analogous
#4827EE #AB27EE #EE27CE
triadic
#AB27EE #EEAB27 #27EEAB
tetradic
#AB27EE #EE4827 #6AEE27 #27CEEE
square
#AB27EE #EE4827 #6AEE27 #27CEEE
split-complementary
#AB27EE #CEEE27 #27EE48
monochromatic
#630B8F #8A10C8 #AB27EE #C160F2 #D798F7

Accessibility & contrast

On white

4.93
#AB27EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AB27EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB27EE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB27EE#FFFFFF#000000##FFFFFF
##AB27EE1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF3
Deuteranopia (green-blind)
#0072EA
Tritanopia (blue-blind)
#A15E8F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab27ee;
/* rgb */ color: rgb(171, 39, 238);
/* oklch */ color: oklch(58.2% 0.271 310.0);
Tailwind
colors: {
  custom: {
    50: '#ca74f5',
    500: '#ab27ee',
    950: '#000000',
  },
}
SCSS
$custom: #ab27ee;
$custom-light: #ca74f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab27ee",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 238
  },
  "hsl": {
    "h": 279.799,
    "s": 85.408,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58196,
    "c": 0.27063,
    "h": 310
  },
  "luminance": 0.16282
}

Semantic roles & 50–950 ramp

primary
#AB27EE
secondary
#ABE38E
accent
#FC2C72
background
#FDF7FF
surface
#FAEEFF
border
#D3C9D7
text
#140917
muted
#837B85

Preview Lab

Preview with #AB27EE

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

Preview Lab → · Contrast checker → · Palette generator →

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