#AB38AF#AB38AF

#AB38AF is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.3% C 0.202 H 326.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AB38AF
RGBrgb(171, 56, 175)
HSLhsl(298, 52%, 45%)
HSVhsv(298, 68%, 69%)
CMYKcmyk(2.3%, 68%, 0%, 31.4%)
CIE-LABlab(45.06, 61.17, -40.31)
CIE-LCHlch(45.06, 73.26, 326.61°)
OKLaboklab(55.27% 0.1687 -0.1118)
OKLCHoklch(55.27% 0.202 326.5)
XYZxyz(25.9461, 14.5831, 41.9973)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38AF #3CAF38
analogous
#6F38AF #AB38AF #AF3878
triadic
#AB38AF #AFAB38 #38AFAB
tetradic
#AB38AF #AF6F38 #3CAF38 #3878AF
square
#AB38AF #AF6F38 #3CAF38 #3878AF
split-complementary
#AB38AF #78AF38 #38AF6F
monochromatic
#501A52 #7E2981 #AB38AF #C65ACA #D688D9

Accessibility & contrast

On white

5.36
#AB38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AB38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38AF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38AF#FFFFFF#000000##FFFFFF
##AB38AF1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2261B2
Deuteranopia (green-blind)
#5370AC
Tritanopia (blue-blind)
#B04A6F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab38af;
/* rgb */ color: rgb(171, 56, 175);
/* oklch */ color: oklch(55.3% 0.202 326.5);
Tailwind
colors: {
  custom: {
    50: '#c778c7',
    500: '#ab38af',
    950: '#000000',
  },
}
SCSS
$custom: #ab38af;
$custom-light: #c778c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38af",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 297.983,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55271,
    "c": 0.20238,
    "h": 326.5
  },
  "luminance": 0.14581
}

Semantic roles & 50–950 ramp

primary
#AB38AF
secondary
#82C380
accent
#DB4D52
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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