#B171C8#B171C8

#B171C8 is a light, vivid purple. Relative luminance 0.253; OKLCH L 64.9% C 0.142 H 316.7°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#B171C8
RGBrgb(177, 113, 200)
HSLhsl(284, 44%, 61%)
HSVhsv(284, 44%, 78%)
CMYKcmyk(11.5%, 43.5%, 0%, 21.6%)
CIE-LABlab(57.39, 40.18, -35.31)
CIE-LCHlch(57.39, 53.49, 318.69°)
OKLaboklab(64.91% 0.1035 -0.0976)
OKLCHoklch(64.91% 0.142 316.7)
XYZxyz(34.4604, 25.3285, 57.7060)
Luminance0.2533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171C8 #88C871
analogous
#8671C8 #B171C8 #C871B4
triadic
#B171C8 #C8B171 #71C8B1
tetradic
#B171C8 #C88671 #88C871 #71B4C8
square
#B171C8 #C88671 #88C871 #71B4C8
split-complementary
#B171C8 #B4C871 #71C886
monochromatic
#733589 #9846B6 #B171C8 #C99DD9 #E1C9EA

Accessibility & contrast

On white

3.46
#B171C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#B171C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171C8
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171C8#FFFFFF#000000##000000
##B171C81.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6286CB
Deuteranopia (green-blind)
#738CC5
Tritanopia (blue-blind)
#B07D93
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b171c8;
/* rgb */ color: rgb(177, 113, 200);
/* oklch */ color: oklch(64.9% 0.142 316.7);
Tailwind
colors: {
  custom: {
    50: '#ca9bd9',
    500: '#b171c8',
    950: '#000000',
  },
}
SCSS
$custom: #b171c8;
$custom-light: #ca9bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b171c8",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 284.138,
    "s": 44.162,
    "l": 61.373
  },
  "oklch": {
    "l": 0.64911,
    "c": 0.14225,
    "h": 316.7
  },
  "luminance": 0.25327
}

Semantic roles & 50–950 ramp

primary
#B171C8
secondary
#C3DBBA
accent
#B72E52
background
#FCF9FD
surface
#F8F2FA
border
#D1CCD3
text
#130E14
muted
#827E83

Preview Lab

Preview with #B171C8

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

Preview Lab → · Contrast checker → · Palette generator →

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