#AB38BE#AB38BE

#AB38BE is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.215 H 321.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AB38BE
RGBrgb(171, 56, 190)
HSLhsl(291, 54%, 48%)
HSVhsv(291, 71%, 75%)
CMYKcmyk(10%, 70.5%, 0%, 25.5%)
CIE-LABlab(45.91, 63.84, -47.75)
CIE-LCHlch(45.91, 79.72, 323.20°)
OKLaboklab(56.16% 0.1685 -0.1334)
OKLCHoklch(56.16% 0.215 321.6)
XYZxyz(27.5020, 15.2055, 50.1916)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38BE #4BBE38
analogous
#6838BE #AB38BE #BE388E
triadic
#AB38BE #BEAB38 #38BEAB
tetradic
#AB38BE #BE6838 #4BBE38 #388EBE
square
#AB38BE #BE6838 #4BBE38 #388EBE
split-complementary
#AB38BE #8EBE38 #38BE68
monochromatic
#561C5F #802A8F #AB38BE #C162D1 #D492DF

Accessibility & contrast

On white

5.20
#AB38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AB38BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38BE
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38BE#FFFFFF#000000##FFFFFF
##AB38BE1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#4971BB
Tritanopia (blue-blind)
#AD5077
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab38be;
/* rgb */ color: rgb(171, 56, 190);
/* oklch */ color: oklch(56.2% 0.215 321.6);
Tailwind
colors: {
  custom: {
    50: '#c879d2',
    500: '#ab38be',
    950: '#000000',
  },
}
SCSS
$custom: #ab38be;
$custom-light: #c879d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38be",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 291.493,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56162,
    "c": 0.21495,
    "h": 321.6
  },
  "luminance": 0.15204
}

Semantic roles & 50–950 ramp

primary
#AB38BE
secondary
#91CA88
accent
#DE4A5F
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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