#B171CA#B171CA

#B171CA is a light, vivid purple. Relative luminance 0.254; OKLCH L 65.0% C 0.144 H 316.0°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#B171CA
RGBrgb(177, 113, 202)
HSLhsl(283, 46%, 62%)
HSVhsv(283, 44%, 79%)
CMYKcmyk(12.4%, 44.1%, 0%, 20.8%)
CIE-LABlab(57.48, 40.60, -36.30)
CIE-LCHlch(57.48, 54.46, 318.19°)
OKLaboklab(65.01% 0.1039 -0.1004)
OKLCHoklch(65.01% 0.144 316)
XYZxyz(34.6957, 25.4226, 58.9450)
Luminance0.2542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171CA #8ACA71
analogous
#8571CA #B171CA #CA71B7
triadic
#B171CA #CAB171 #71CAB1
tetradic
#B171CA #CA8571 #8ACA71 #71B7CA
square
#B171CA #CA8571 #8ACA71 #71B7CA
split-complementary
#B171CA #B7CA71 #71CA85
monochromatic
#74348C #9845B9 #B171CA #C99EDB #E2CAEB

Accessibility & contrast

On white

3.45
#B171CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#B171CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171CA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171CA#FFFFFF#000000##000000
##B171CA1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6186CD
Deuteranopia (green-blind)
#728CC7
Tritanopia (blue-blind)
#B07D94
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b171ca;
/* rgb */ color: rgb(177, 113, 202);
/* oklch */ color: oklch(65.0% 0.144 316.0);
Tailwind
colors: {
  custom: {
    50: '#ca9bda',
    500: '#b171ca',
    950: '#000000',
  },
}
SCSS
$custom: #b171ca;
$custom-light: #ca9bda;
$custom-dark: #000000;
JSON
{
  "hex": "#b171ca",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 283.146,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.65008,
    "c": 0.14448,
    "h": 316
  },
  "luminance": 0.25422
}

Semantic roles & 50–950 ramp

primary
#B171CA
secondary
#C4DCBB
accent
#B92D54
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B171CA

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

Preview Lab → · Contrast checker → · Palette generator →

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