#AB38DB#AB38DB

#AB38DB is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.1% C 0.240 H 313.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB38DB
RGBrgb(171, 56, 219)
HSLhsl(282, 69%, 54%)
HSVhsv(282, 74%, 86%)
CMYKcmyk(21.9%, 74.4%, 0%, 14.1%)
CIE-LABlab(47.75, 69.34, -61.51)
CIE-LCHlch(47.75, 92.70, 318.42°)
OKLaboklab(58.06% 0.1656 -0.1738)
OKLCHoklch(58.06% 0.24 313.6)
XYZxyz(30.9927, 16.6018, 68.5760)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB38DB #68DB38
analogous
#5A38DB #AB38DB #DB38BA
triadic
#AB38DB #DBAB38 #38DBAB
tetradic
#AB38DB #DB5A38 #68DB38 #38BADB
square
#AB38DB #DB5A38 #68DB38 #38BADB
split-complementary
#AB38DB #BADB38 #38DB5A
monochromatic
#621781 #8921B5 #AB38DB #C16CE4 #D7A0EE

Accessibility & contrast

On white

4.86
#AB38DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AB38DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB38DB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB38DB#FFFFFF#000000##FFFFFF
##AB38DB1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#2974D8
Tritanopia (blue-blind)
#A65D88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab38db;
/* rgb */ color: rgb(171, 56, 219);
/* oklch */ color: oklch(58.1% 0.240 313.6);
Tailwind
colors: {
  custom: {
    50: '#c97ae7',
    500: '#ab38db',
    950: '#000000',
  },
}
SCSS
$custom: #ab38db;
$custom-light: #c97ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab38db",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 282.331,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58056,
    "c": 0.24005,
    "h": 313.6
  },
  "luminance": 0.16601
}

Semantic roles & 50–950 ramp

primary
#AB38DB
secondary
#A9DA95
accent
#EC3C70
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AB38DB

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

Preview Lab → · Contrast checker → · Palette generator →

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