#B171DB#B171DB

#B171DB is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.9% C 0.164 H 310.5°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#B171DB
RGBrgb(177, 113, 219)
HSLhsl(276, 60%, 65%)
HSVhsv(276, 48%, 86%)
CMYKcmyk(19.2%, 48.4%, 0%, 14.1%)
CIE-LABlab(58.29, 44.25, -44.63)
CIE-LCHlch(58.29, 62.85, 314.76°)
OKLaboklab(65.88% 0.1064 -0.1245)
OKLCHoklch(65.88% 0.164 310.5)
XYZxyz(36.8204, 26.2725, 70.1355)
Luminance0.2627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171DB #9BDB71
analogous
#7C71DB #B171DB #DB71D0
triadic
#B171DB #DBB171 #71DBB1
tetradic
#B171DB #DB7C71 #9BDB71 #71D0DB
square
#B171DB #DB7C71 #9BDB71 #71D0DB
split-complementary
#B171DB #D0DB71 #71DB7C
monochromatic
#762AA7 #9640CF #B171DB #CCA2E7 #E7D3F4

Accessibility & contrast

On white

3.36
#B171DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#B171DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171DB
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171DB#FFFFFF#000000##000000
##B171DB1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5789DF
Deuteranopia (green-blind)
#698DD8
Tritanopia (blue-blind)
#AC829C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b171db;
/* rgb */ color: rgb(177, 113, 219);
/* oklch */ color: oklch(65.9% 0.164 310.5);
Tailwind
colors: {
  custom: {
    50: '#ca9be6',
    500: '#b171db',
    950: '#000000',
  },
}
SCSS
$custom: #b171db;
$custom-light: #ca9be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b171db",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 276.226,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.65877,
    "c": 0.16376,
    "h": 310.5
  },
  "luminance": 0.26272
}

Semantic roles & 50–950 ramp

primary
#B171DB
secondary
#D0E6C2
accent
#C71E61
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B171DB

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

Preview Lab → · Contrast checker → · Palette generator →

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