#AB38D7#AB38D7

#AB38D7 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.8% C 0.237 H 314.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AB38D7
RGBrgb(171, 56, 215)
HSLhsl(283, 67%, 53%)
HSVhsv(283, 74%, 84%)
CMYKcmyk(20.5%, 74%, 0%, 15.7%)
CIE-LABlab(47.49, 68.56, -59.66)
CIE-LCHlch(47.49, 90.88, 318.97°)
OKLaboklab(57.78% 0.1662 -0.1683)
OKLCHoklch(57.78% 0.237 314.6)
XYZxyz(30.4725, 16.3937, 65.8359)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38D7 #64D738
analogous
#5B38D7 #AB38D7 #D738B4
triadic
#AB38D7 #D7AB38 #38D7AB
tetradic
#AB38D7 #D75B38 #64D738 #38B4D7
square
#AB38D7 #D75B38 #64D738 #38B4D7
split-complementary
#AB38D7 #B4D738 #38D75B
monochromatic
#60197C #8823AF #AB38D7 #C16BE1 #D69EEB

Accessibility & contrast

On white

4.91
#AB38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AB38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38D7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38D7#FFFFFF#000000##FFFFFF
##AB38D71.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#2F73D4
Tritanopia (blue-blind)
#A75B85
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab38d7;
/* rgb */ color: rgb(171, 56, 215);
/* oklch */ color: oklch(57.8% 0.237 314.6);
Tailwind
colors: {
  custom: {
    50: '#c97ae4',
    500: '#ab38d7',
    950: '#000000',
  },
}
SCSS
$custom: #ab38d7;
$custom-light: #c97ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38d7",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 283.396,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57782,
    "c": 0.23655,
    "h": 314.6
  },
  "luminance": 0.16393
}

Semantic roles & 50–950 ramp

primary
#AB38D7
secondary
#A6D893
accent
#E93E6E
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AB38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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