#AB5FB2#AB5FB2

#AB5FB2 is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.3% C 0.147 H 324.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AB5FB2
RGBrgb(171, 95, 178)
HSLhsl(295, 35%, 54%)
HSVhsv(295, 47%, 70%)
CMYKcmyk(3.9%, 46.6%, 0%, 30.2%)
CIE-LABlab(51.90, 43.62, -31.30)
CIE-LCHlch(51.90, 53.69, 324.34°)
OKLaboklab(60.33% 0.1187 -0.0861)
OKLCHoklch(60.33% 0.147 324)
XYZxyz(28.9219, 20.0580, 44.4590)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FB2 #66B25F
analogous
#815FB2 #AB5FB2 #B25F8F
triadic
#AB5FB2 #B2AB5F #5FB2AB
tetradic
#AB5FB2 #B2815F #66B25F #5F8FB2
square
#AB5FB2 #B2815F #66B25F #5F8FB2
split-complementary
#AB5FB2 #8FB25F #5FB281
monochromatic
#613166 #89458F #AB5FB2 #C188C6 #D6B2DA

Accessibility & contrast

On white

4.19
#AB5FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AB5FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FB2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FB2#FFFFFF#000000##000000
##AB5FB21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5576B5
Deuteranopia (green-blind)
#6B7FB0
Tritanopia (blue-blind)
#AE6980
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab5fb2;
/* rgb */ color: rgb(171, 95, 178);
/* oklch */ color: oklch(60.3% 0.147 324.0);
Tailwind
colors: {
  custom: {
    50: '#c68fc9',
    500: '#ab5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fb2;
$custom-light: #c68fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fb2",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 294.94,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60331,
    "c": 0.14657,
    "h": 324
  },
  "luminance": 0.20057
}

Semantic roles & 50–950 ramp

primary
#AB5FB2
secondary
#A8C8A5
accent
#CB5D66
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AB5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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