#AB5FC2#AB5FC2

#AB5FC2 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.1% C 0.163 H 317.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB5FC2
RGBrgb(171, 95, 194)
HSLhsl(286, 45%, 57%)
HSVhsv(286, 51%, 76%)
CMYKcmyk(11.9%, 51%, 0%, 23.9%)
CIE-LABlab(52.66, 46.82, -39.36)
CIE-LCHlch(52.66, 61.16, 319.95°)
OKLaboklab(61.14% 0.121 -0.1093)
OKLCHoklch(61.14% 0.163 317.9)
XYZxyz(30.6231, 20.7385, 53.4183)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FC2 #76C25F
analogous
#7A5FC2 #AB5FC2 #C25FA7
triadic
#AB5FC2 #C2AB5F #5FC2AB
tetradic
#AB5FC2 #C27A5F #76C25F #5FA7C2
square
#AB5FC2 #C27A5F #76C25F #5FA7C2
split-complementary
#AB5FC2 #A7C25F #5FC27A
monochromatic
#672E79 #8D3FA5 #AB5FC2 #C28BD3 #DAB8E4

Accessibility & contrast

On white

4.08
#AB5FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AB5FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FC2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FC2#FFFFFF#000000##000000
##AB5FC21.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C79C5
Deuteranopia (green-blind)
#6380BF
Tritanopia (blue-blind)
#AB6D88
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5fc2;
/* rgb */ color: rgb(171, 95, 194);
/* oklch */ color: oklch(61.1% 0.163 317.9);
Tailwind
colors: {
  custom: {
    50: '#c68fd5',
    500: '#ab5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fc2;
$custom-light: #c68fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fc2",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 286.061,
    "s": 44.796,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61142,
    "c": 0.16304,
    "h": 317.9
  },
  "luminance": 0.20737
}

Semantic roles & 50–950 ramp

primary
#AB5FC2
secondary
#B4D3AA
accent
#D45371
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130D14
muted
#827D83

Preview Lab

Preview with #AB5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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