#AB38CF#AB38CF

#AB38CF is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.230 H 316.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB38CF
RGBrgb(171, 56, 207)
HSLhsl(286, 61%, 52%)
HSVhsv(286, 73%, 81%)
CMYKcmyk(17.4%, 72.9%, 0%, 18.8%)
CIE-LABlab(46.96, 67.01, -55.91)
CIE-LCHlch(46.96, 87.28, 320.16°)
OKLaboklab(57.25% 0.1672 -0.1573)
OKLCHoklch(57.25% 0.23 316.7)
XYZxyz(29.4695, 15.9925, 60.5539)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38CF #5CCF38
analogous
#6038CF #AB38CF #CF38A8
triadic
#AB38CF #CFAB38 #38CFAB
tetradic
#AB38CF #CF6038 #5CCF38 #38A8CF
square
#AB38CF #CF6038 #5CCF38 #38A8CF
split-complementary
#AB38CF #A8CF38 #38CF60
monochromatic
#5D1B71 #8527A3 #AB38CF #C069DB #D59BE7

Accessibility & contrast

On white

5.00
#AB38CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AB38CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38CF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38CF#FFFFFF#000000##FFFFFF
##AB38CF1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#3973CC
Tritanopia (blue-blind)
#A95881
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab38cf;
/* rgb */ color: rgb(171, 56, 207);
/* oklch */ color: oklch(57.2% 0.230 316.7);
Tailwind
colors: {
  custom: {
    50: '#c87ade',
    500: '#ab38cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab38cf;
$custom-light: #c87ade;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38cf",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 285.695,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57246,
    "c": 0.22957,
    "h": 316.7
  },
  "luminance": 0.15991
}

Semantic roles & 50–950 ramp

primary
#AB38CF
secondary
#A0D390
accent
#E4446A
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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