#AB38B4#AB38B4

#AB38B4 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.6% C 0.207 H 324.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AB38B4
RGBrgb(171, 56, 180)
HSLhsl(296, 53%, 46%)
HSVhsv(296, 69%, 71%)
CMYKcmyk(5%, 68.9%, 0%, 29.4%)
CIE-LABlab(45.34, 62.04, -42.82)
CIE-LCHlch(45.34, 75.38, 325.39°)
OKLaboklab(55.56% 0.1688 -0.119)
OKLCHoklch(55.56% 0.207 324.8)
XYZxyz(26.4463, 14.7832, 44.6316)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38B4 #41B438
analogous
#6D38B4 #AB38B4 #B4387F
triadic
#AB38B4 #B4AB38 #38B4AB
tetradic
#AB38B4 #B46D38 #41B438 #387FB4
square
#AB38B4 #B46D38 #41B438 #387FB4
split-complementary
#AB38B4 #7FB438 #38B46D
monochromatic
#521B57 #7F2985 #AB38B4 #C45DCD #D58BDB

Accessibility & contrast

On white

5.31
#AB38B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AB38B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38B4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38B4#FFFFFF#000000##FFFFFF
##AB38B41.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A62B8
Deuteranopia (green-blind)
#5070B1
Tritanopia (blue-blind)
#AF4C72
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab38b4;
/* rgb */ color: rgb(171, 56, 180);
/* oklch */ color: oklch(55.6% 0.207 324.8);
Tailwind
colors: {
  custom: {
    50: '#c779cb',
    500: '#ab38b4',
    950: '#000000',
  },
}
SCSS
$custom: #ab38b4;
$custom-light: #c779cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38b4",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 295.645,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55561,
    "c": 0.20653,
    "h": 324.8
  },
  "luminance": 0.14782
}

Semantic roles & 50–950 ramp

primary
#AB38B4
secondary
#87C582
accent
#DC4C56
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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