#AB38B1#AB38B1

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

Color values

HEX#AB38B1
RGBrgb(171, 56, 177)
HSLhsl(297, 52%, 46%)
HSVhsv(297, 68%, 69%)
CMYKcmyk(3.4%, 68.4%, 0%, 30.6%)
CIE-LABlab(45.17, 61.52, -41.32)
CIE-LCHlch(45.17, 74.10, 326.11°)
OKLaboklab(55.39% 0.1688 -0.1147)
OKLCHoklch(55.39% 0.204 325.8)
XYZxyz(26.1440, 14.6623, 43.0395)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38B1 #3EB138
analogous
#6E38B1 #AB38B1 #B1387A
triadic
#AB38B1 #B1AB38 #38B1AB
tetradic
#AB38B1 #B16E38 #3EB138 #387AB1
square
#AB38B1 #B16E38 #3EB138 #387AB1
split-complementary
#AB38B1 #7AB138 #38B16E
monochromatic
#511B54 #7E2983 #AB38B1 #C65BCB #D68ADA

Accessibility & contrast

On white

5.34
#AB38B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AB38B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38B1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38B1#FFFFFF#000000##FFFFFF
##AB38B11.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B4
Deuteranopia (green-blind)
#5270AE
Tritanopia (blue-blind)
#AF4B70
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab38b1;
/* rgb */ color: rgb(171, 56, 177);
/* oklch */ color: oklch(55.4% 0.204 325.8);
Tailwind
colors: {
  custom: {
    50: '#c779c9',
    500: '#ab38b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab38b1;
$custom-light: #c779c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38b1",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 297.025,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55386,
    "c": 0.20404,
    "h": 325.8
  },
  "luminance": 0.14661
}

Semantic roles & 50–950 ramp

primary
#AB38B1
secondary
#84C481
accent
#DB4C54
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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