#B171FD#B171FD

#B171FD is a light, highly saturated violet. Relative luminance 0.282; OKLCH L 67.8% C 0.203 H 302.4°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#B171FD
RGBrgb(177, 113, 253)
HSLhsl(267, 97%, 72%)
HSVhsv(267, 55%, 99%)
CMYKcmyk(30%, 55.3%, 0%, 0.8%)
CIE-LABlab(60.11, 52.04, -60.66)
CIE-LCHlch(60.11, 79.92, 310.63°)
OKLaboklab(67.81% 0.1088 -0.1713)
OKLCHoklch(67.81% 0.203 302.4)
XYZxyz(41.7622, 28.2492, 96.1619)
Luminance0.2825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171FD #BDFD71
analogous
#7177FD #B171FD #F771FD
triadic
#B171FD #FDB171 #71FDB1
tetradic
#B171FD #FD7177 #BDFD71 #71FDF7
square
#B171FD #FD7177 #BDFD71 #71FDF7
split-complementary
#B171FD #FDF771 #77FD71
monochromatic
#7003F0 #9035FC #B171FD #D2ADFE #EEE1FF

Accessibility & contrast

On white

3.16
#B171FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#B171FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171FD
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171FD#FFFFFF#000000##000000
##B171FD1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3890FF
Deuteranopia (green-blind)
#5090FA
Tritanopia (blue-blind)
#A28CAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b171fd;
/* rgb */ color: rgb(177, 113, 253);
/* oklch */ color: oklch(67.8% 0.203 302.4);
Tailwind
colors: {
  custom: {
    50: '#cc9cff',
    500: '#b171fd',
    950: '#000000',
  },
}
SCSS
$custom: #b171fd;
$custom-light: #cc9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#b171fd",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 267.429,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6781,
    "c": 0.20294,
    "h": 302.4
  },
  "luminance": 0.28249
}

Semantic roles & 50–950 ramp

primary
#B171FD
secondary
#E6F7D3
accent
#E6007D
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B171FD

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

Preview Lab → · Contrast checker → · Palette generator →

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