#B171DF#B171DF

#B171DF is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.1% C 0.168 H 309.4°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#B171DF
RGBrgb(177, 113, 223)
HSLhsl(275, 63%, 66%)
HSVhsv(275, 49%, 87%)
CMYKcmyk(20.6%, 49.3%, 0%, 12.5%)
CIE-LABlab(58.50, 45.14, -46.56)
CIE-LCHlch(58.50, 64.85, 314.11°)
OKLaboklab(66.09% 0.1068 -0.1301)
OKLCHoklch(66.09% 0.168 309.4)
XYZxyz(37.3533, 26.4857, 72.9422)
Luminance0.2648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171DF #9FDF71
analogous
#7A71DF #B171DF #DF71D6
triadic
#B171DF #DFB171 #71DFB1
tetradic
#B171DF #DF7A71 #9FDF71 #71D6DF
square
#B171DF #DF7A71 #9FDF71 #71D6DF
split-complementary
#B171DF #D6DF71 #71DF7A
monochromatic
#7627AE #963FD4 #B171DF #CCA3EA #E8D5F6

Accessibility & contrast

On white

3.33
#B171DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#B171DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171DF
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171DF#FFFFFF#000000##000000
##B171DF1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#548AE3
Deuteranopia (green-blind)
#678EDC
Tritanopia (blue-blind)
#AB839E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b171df;
/* rgb */ color: rgb(177, 113, 223);
/* oklch */ color: oklch(66.1% 0.168 309.4);
Tailwind
colors: {
  custom: {
    50: '#ca9be9',
    500: '#b171df',
    950: '#000000',
  },
}
SCSS
$custom: #b171df;
$custom-light: #ca9be9;
$custom-dark: #000000;
JSON
{
  "hex": "#b171df",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 274.909,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.66091,
    "c": 0.16836,
    "h": 309.4
  },
  "luminance": 0.26485
}

Semantic roles & 50–950 ramp

primary
#B171DF
secondary
#D3E8C4
accent
#CB1B64
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B171DF

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

Preview Lab → · Contrast checker → · Palette generator →

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