#B171CD#B171CD

#B171CD is a light, vivid purple. Relative luminance 0.256; OKLCH L 65.2% C 0.148 H 314.9°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#B171CD
RGBrgb(177, 113, 205)
HSLhsl(282, 48%, 62%)
HSVhsv(282, 45%, 80%)
CMYKcmyk(13.7%, 44.9%, 0%, 19.6%)
CIE-LABlab(57.62, 41.23, -37.79)
CIE-LCHlch(57.62, 55.93, 317.49°)
OKLaboklab(65.16% 0.1044 -0.1047)
OKLCHoklch(65.16% 0.148 314.9)
XYZxyz(35.0543, 25.5660, 60.8339)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171CD #8DCD71
analogous
#8371CD #B171CD #CD71BB
triadic
#B171CD #CDB171 #71CDB1
tetradic
#B171CD #CD8371 #8DCD71 #71BBCD
square
#B171CD #CD8371 #8DCD71 #71BBCD
split-complementary
#B171CD #BBCD71 #71CD83
monochromatic
#743391 #9844BD #B171CD #CA9EDD #E3CCED

Accessibility & contrast

On white

3.44
#B171CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#B171CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171CD
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171CD#FFFFFF#000000##000000
##B171CD1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F87D0
Deuteranopia (green-blind)
#718CCA
Tritanopia (blue-blind)
#AF7E95
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b171cd;
/* rgb */ color: rgb(177, 113, 205);
/* oklch */ color: oklch(65.2% 0.148 314.9);
Tailwind
colors: {
  custom: {
    50: '#ca9bdc',
    500: '#b171cd',
    950: '#000000',
  },
}
SCSS
$custom: #b171cd;
$custom-light: #ca9bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b171cd",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 281.739,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.65157,
    "c": 0.14785,
    "h": 314.9
  },
  "luminance": 0.25565
}

Semantic roles & 50–950 ramp

primary
#B171CD
secondary
#C6DEBC
accent
#BB2A56
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B171CD

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

Preview Lab → · Contrast checker → · Palette generator →

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