#B171FC#B171FC

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

Color values

HEX#B171FC
RGBrgb(177, 113, 252)
HSLhsl(268, 96%, 72%)
HSVhsv(268, 55%, 99%)
CMYKcmyk(29.8%, 55.2%, 0%, 1.2%)
CIE-LABlab(60.06, 51.81, -60.20)
CIE-LCHlch(60.06, 79.42, 310.72°)
OKLaboklab(67.75% 0.1087 -0.17)
OKLCHoklch(67.75% 0.202 302.6)
XYZxyz(41.6033, 28.1856, 95.3252)
Luminance0.2819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171FC #BCFC71
analogous
#7177FC #B171FC #F771FC
triadic
#B171FC #FCB171 #71FCB1
tetradic
#B171FC #FC7177 #BCFC71 #71FCF7
square
#B171FC #FC7177 #BCFC71 #71FCF7
split-complementary
#B171FC #FCF771 #77FC71
monochromatic
#7005EE #9035FB #B171FC #D2ADFD #EFE1FE

Accessibility & contrast

On white

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

On black

6.64
#B171FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171FC
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171FC#FFFFFF#000000##000000
##B171FC1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#398FFF
Deuteranopia (green-blind)
#5190F9
Tritanopia (blue-blind)
#A38CAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b171fc;
/* rgb */ color: rgb(177, 113, 252);
/* oklch */ color: oklch(67.8% 0.202 302.6);
Tailwind
colors: {
  custom: {
    50: '#cc9cfe',
    500: '#b171fc',
    950: '#000000',
  },
}
SCSS
$custom: #b171fc;
$custom-light: #cc9cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b171fc",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 267.626,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.6775,
    "c": 0.20179,
    "h": 302.6
  },
  "luminance": 0.28186
}

Semantic roles & 50–950 ramp

primary
#B171FC
secondary
#E6F6D3
accent
#E6007C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B171FC

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

Preview Lab → · Contrast checker → · Palette generator →

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