#AB52ED#AB52ED

#AB52ED is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 62.0% C 0.227 H 307.4°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AB52ED
RGBrgb(171, 82, 237)
HSLhsl(274, 81%, 63%)
HSVhsv(274, 65%, 93%)
CMYKcmyk(27.8%, 65.4%, 0%, 7.1%)
CIE-LABlab(52.74, 62.42, -63.65)
CIE-LCHlch(52.74, 89.15, 314.44°)
OKLaboklab(61.99% 0.1377 -0.1802)
OKLCHoklch(61.99% 0.227 307.4)
XYZxyz(35.0947, 20.8074, 82.2718)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52ED #94ED52
analogous
#5E52ED #AB52ED #ED52E1
triadic
#AB52ED #EDAB52 #52EDAB
tetradic
#AB52ED #ED5E52 #94ED52 #52E1ED
square
#AB52ED #ED5E52 #94ED52 #52E1ED
split-complementary
#AB52ED #E1ED52 #52ED5E
monochromatic
#6E13B2 #901BE7 #AB52ED #C689F3 #E1C1F9

Accessibility & contrast

On white

4.07
#AB52ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AB52ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52ED
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52ED#FFFFFF#000000##000000
##AB52ED1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF2
Deuteranopia (green-blind)
#307FEA
Tritanopia (blue-blind)
#A07399
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab52ed;
/* rgb */ color: rgb(171, 82, 237);
/* oklch */ color: oklch(62.0% 0.227 307.4);
Tailwind
colors: {
  custom: {
    50: '#c988f4',
    500: '#ab52ed',
    950: '#000000',
  },
}
SCSS
$custom: #ab52ed;
$custom-light: #c988f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52ed",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 237
  },
  "hsl": {
    "h": 274.452,
    "s": 81.152,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61985,
    "c": 0.22678,
    "h": 307.4
  },
  "luminance": 0.20807
}

Semantic roles & 50–950 ramp

primary
#AB52ED
secondary
#C9EAB1
accent
#DE0863
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB52ED

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

Preview Lab → · Contrast checker → · Palette generator →

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