#AB38D5#AB38D5

#AB38D5 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.235 H 315.1°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB38D5
RGBrgb(171, 56, 213)
HSLhsl(284, 65%, 53%)
HSVhsv(284, 74%, 84%)
CMYKcmyk(19.7%, 73.7%, 0%, 16.5%)
CIE-LABlab(47.35, 68.17, -58.73)
CIE-LCHlch(47.35, 89.98, 319.26°)
OKLaboklab(57.65% 0.1664 -0.1656)
OKLCHoklch(57.65% 0.235 315.1)
XYZxyz(30.2170, 16.2915, 64.4907)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38D5 #62D538
analogous
#5C38D5 #AB38D5 #D538B0
triadic
#AB38D5 #D5AB38 #38D5AB
tetradic
#AB38D5 #D55C38 #62D538 #38B0D5
square
#AB38D5 #D55C38 #62D538 #38B0D5
split-complementary
#AB38D5 #B0D538 #38D55C
monochromatic
#601A79 #8724AC #AB38D5 #C06BE0 #D69DEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB38D5#FFFFFF#000000##FFFFFF
##AB38D51.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)
#006AD9
Deuteranopia (green-blind)
#3273D2
Tritanopia (blue-blind)
#A85A84
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab38d5;
/* rgb */ color: rgb(171, 56, 213);
/* oklch */ color: oklch(57.6% 0.235 315.1);
Tailwind
colors: {
  custom: {
    50: '#c87ae3',
    500: '#ab38d5',
    950: '#000000',
  },
}
SCSS
$custom: #ab38d5;
$custom-light: #c87ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38d5",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 283.949,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57646,
    "c": 0.2348,
    "h": 315.1
  },
  "luminance": 0.1629
}

Semantic roles & 50–950 ramp

primary
#AB38D5
secondary
#A5D692
accent
#E8406D
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140A15
muted
#827C84

Preview Lab

Preview with #AB38D5

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

Preview Lab → · Contrast checker → · Palette generator →

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