#AB5FCB#AB5FCB

#AB5FCB is a mid, vivid purple. Relative luminance 0.212; OKLCH L 61.6% C 0.173 H 314.9°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB5FCB
RGBrgb(171, 95, 203)
HSLhsl(282, 51%, 58%)
HSVhsv(282, 53%, 80%)
CMYKcmyk(15.8%, 53.2%, 0%, 20.4%)
CIE-LABlab(53.12, 48.69, -43.79)
CIE-LCHlch(53.12, 65.49, 318.03°)
OKLaboklab(61.63% 0.1219 -0.1222)
OKLCHoklch(61.63% 0.173 314.9)
XYZxyz(31.6646, 21.1551, 58.9037)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FCB #7FCB5F
analogous
#755FCB #AB5FCB #CB5FB5
triadic
#AB5FCB #CBAB5F #5FCBAB
tetradic
#AB5FCB #CB755F #7FCB5F #5FB5CB
square
#AB5FCB #CB755F #7FCB5F #5FB5CB
split-complementary
#AB5FCB #B5CB5F #5FCB75
monochromatic
#6A2B85 #8F3AB3 #AB5FCB #C38DDA #DBBBE9

Accessibility & contrast

On white

4.01
#AB5FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AB5FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FCB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FCB#FFFFFF#000000##000000
##AB5FCB1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#457ACF
Deuteranopia (green-blind)
#5E81C8
Tritanopia (blue-blind)
#A9708C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5fcb;
/* rgb */ color: rgb(171, 95, 203);
/* oklch */ color: oklch(61.6% 0.173 314.9);
Tailwind
colors: {
  custom: {
    50: '#c68fdb',
    500: '#ab5fcb',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fcb;
$custom-light: #c68fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fcb",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 203
  },
  "hsl": {
    "h": 282.222,
    "s": 50.943,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61627,
    "c": 0.17258,
    "h": 314.9
  },
  "luminance": 0.21154
}

Semantic roles & 50–950 ramp

primary
#AB5FCB
secondary
#BAD8AD
accent
#DA4D77
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AB5FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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