#B171F7#B171F7

#B171F7 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.5% C 0.196 H 303.6°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#B171F7
RGBrgb(177, 113, 247)
HSLhsl(269, 89%, 71%)
HSVhsv(269, 54%, 97%)
CMYKcmyk(28.3%, 54.3%, 0%, 3.1%)
CIE-LABlab(59.77, 50.63, -57.89)
CIE-LCHlch(59.77, 76.91, 311.17°)
OKLaboklab(67.45% 0.1086 -0.1632)
OKLCHoklch(67.45% 0.196 303.6)
XYZxyz(40.8214, 27.8729, 91.2071)
Luminance0.2787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171F7 #B7F771
analogous
#7174F7 #B171F7 #F471F7
triadic
#B171F7 #F7B171 #71F7B1
tetradic
#B171F7 #F77174 #B7F771 #71F7F4
square
#B171F7 #F77174 #B7F771 #71F7F4
split-complementary
#B171F7 #F7F471 #74F771
monochromatic
#720DE1 #9137F4 #B171F7 #D1ABFA #EFE2FD

Accessibility & contrast

On white

3.19
#B171F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#B171F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171F7
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171F7#FFFFFF#000000##000000
##B171F71.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8EFB
Deuteranopia (green-blind)
#5590F4
Tritanopia (blue-blind)
#A48BA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b171f7;
/* rgb */ color: rgb(177, 113, 247);
/* oklch */ color: oklch(67.5% 0.196 303.6);
Tailwind
colors: {
  custom: {
    50: '#cc9cfa',
    500: '#b171f7',
    950: '#000000',
  },
}
SCSS
$custom: #b171f7;
$custom-light: #cc9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b171f7",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 268.657,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67451,
    "c": 0.19604,
    "h": 303.6
  },
  "luminance": 0.27873
}

Semantic roles & 50–950 ramp

primary
#B171F7
secondary
#E3F4D0
accent
#E60078
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B171F7

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

Preview Lab → · Contrast checker → · Palette generator →

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