#AB38B2#AB38B2

#AB38B2 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.4% C 0.205 H 325.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AB38B2
RGBrgb(171, 56, 178)
HSLhsl(297, 52%, 46%)
HSVhsv(297, 69%, 70%)
CMYKcmyk(3.9%, 68.5%, 0%, 30.2%)
CIE-LABlab(45.22, 61.69, -41.82)
CIE-LCHlch(45.22, 74.53, 325.87°)
OKLaboklab(55.44% 0.1688 -0.1161)
OKLCHoklch(55.44% 0.205 325.5)
XYZxyz(26.2441, 14.7023, 43.5664)
Luminance0.1470 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38B2 #3FB238
analogous
#6E38B2 #AB38B2 #B2387C
triadic
#AB38B2 #B2AB38 #38B2AB
tetradic
#AB38B2 #B26E38 #3FB238 #387CB2
square
#AB38B2 #B26E38 #3FB238 #387CB2
split-complementary
#AB38B2 #7CB238 #38B26E
monochromatic
#521B55 #7E2983 #AB38B2 #C55CCC #D68ADA

Accessibility & contrast

On white

5.33
#AB38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#AB38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38B2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38B2#FFFFFF#000000##FFFFFF
##AB38B21.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#AF4B71
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab38b2;
/* rgb */ color: rgb(171, 56, 178);
/* oklch */ color: oklch(55.4% 0.205 325.5);
Tailwind
colors: {
  custom: {
    50: '#c779c9',
    500: '#ab38b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab38b2;
$custom-light: #c779c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38b2",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 296.557,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55444,
    "c": 0.20487,
    "h": 325.5
  },
  "luminance": 0.14701
}

Semantic roles & 50–950 ramp

primary
#AB38B2
secondary
#85C581
accent
#DC4C54
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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