#B171F6#B171F6

#B171F6 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.4% C 0.195 H 303.8°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#B171F6
RGBrgb(177, 113, 246)
HSLhsl(269, 88%, 70%)
HSVhsv(269, 54%, 96%)
CMYKcmyk(28%, 54.1%, 0%, 3.5%)
CIE-LABlab(59.72, 50.40, -57.42)
CIE-LCHlch(59.72, 76.40, 311.27°)
OKLaboklab(67.39% 0.1085 -0.1619)
OKLCHoklch(67.39% 0.195 303.8)
XYZxyz(40.6675, 27.8113, 90.3966)
Luminance0.2781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171F6 #B6F671
analogous
#7174F6 #B171F6 #F371F6
triadic
#B171F6 #F6B171 #71F6B1
tetradic
#B171F6 #F67174 #B6F671 #71F6F3
square
#B171F6 #F67174 #B6F671 #71F6F3
split-complementary
#B171F6 #F6F371 #74F671
monochromatic
#720EDE #9137F2 #B171F6 #D1ABFA #EFE2FD

Accessibility & contrast

On white

3.20
#B171F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#B171F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171F6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171F6#FFFFFF#000000##000000
##B171F61.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#408EFA
Deuteranopia (green-blind)
#5690F3
Tritanopia (blue-blind)
#A58AA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b171f6;
/* rgb */ color: rgb(177, 113, 246);
/* oklch */ color: oklch(67.4% 0.195 303.8);
Tailwind
colors: {
  custom: {
    50: '#cc9cfa',
    500: '#b171f6',
    950: '#000000',
  },
}
SCSS
$custom: #b171f6;
$custom-light: #cc9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b171f6",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 268.872,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67392,
    "c": 0.19489,
    "h": 303.8
  },
  "luminance": 0.27811
}

Semantic roles & 50–950 ramp

primary
#B171F6
secondary
#E2F4CF
accent
#E50177
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B171F6

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

Preview Lab → · Contrast checker → · Palette generator →

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