#B171DD#B171DD

#B171DD is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.0% C 0.166 H 309.9°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#B171DD
RGBrgb(177, 113, 221)
HSLhsl(276, 61%, 65%)
HSVhsv(276, 49%, 87%)
CMYKcmyk(19.9%, 48.9%, 0%, 13.3%)
CIE-LABlab(58.39, 44.70, -45.60)
CIE-LCHlch(58.39, 63.85, 314.43°)
OKLaboklab(65.98% 0.1066 -0.1273)
OKLCHoklch(65.98% 0.166 309.9)
XYZxyz(37.0853, 26.3784, 71.5305)
Luminance0.2638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171DD #9DDD71
analogous
#7B71DD #B171DD #DD71D3
triadic
#B171DD #DDB171 #71DDB1
tetradic
#B171DD #DD7B71 #9DDD71 #71D3DD
square
#B171DD #DD7B71 #9DDD71 #71D3DD
split-complementary
#B171DD #D3DD71 #71DD7B
monochromatic
#7629AB #9640D1 #B171DD #CCA2E9 #E7D4F5

Accessibility & contrast

On white

3.35
#B171DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#B171DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171DD
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171DD#FFFFFF#000000##000000
##B171DD1.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689E1
Deuteranopia (green-blind)
#688EDA
Tritanopia (blue-blind)
#AC839D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b171dd;
/* rgb */ color: rgb(177, 113, 221);
/* oklch */ color: oklch(66.0% 0.166 309.9);
Tailwind
colors: {
  custom: {
    50: '#ca9be8',
    500: '#b171dd',
    950: '#000000',
  },
}
SCSS
$custom: #b171dd;
$custom-light: #ca9be8;
$custom-dark: #000000;
JSON
{
  "hex": "#b171dd",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 275.556,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65984,
    "c": 0.16606,
    "h": 309.9
  },
  "luminance": 0.26378
}

Semantic roles & 50–950 ramp

primary
#B171DD
secondary
#D2E7C3
accent
#C91C63
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B171DD

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

Preview Lab → · Contrast checker → · Palette generator →

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