#B171F9#B171F9

#B171F9 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.6% C 0.198 H 303.2°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#B171F9
RGBrgb(177, 113, 249)
HSLhsl(268, 92%, 71%)
HSVhsv(268, 55%, 98%)
CMYKcmyk(28.9%, 54.6%, 0%, 2.4%)
CIE-LABlab(59.89, 51.10, -58.81)
CIE-LCHlch(59.89, 77.91, 310.99°)
OKLaboklab(67.57% 0.1086 -0.1659)
OKLCHoklch(67.57% 0.198 303.2)
XYZxyz(41.1316, 27.9970, 92.8412)
Luminance0.2800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171F9 #B9F971
analogous
#7175F9 #B171F9 #F571F9
triadic
#B171F9 #F9B171 #71F9B1
tetradic
#B171F9 #F97175 #B9F971 #71F9F5
square
#B171F9 #F97175 #B9F971 #71F9F5
split-complementary
#B171F9 #F9F571 #75F971
monochromatic
#710AE6 #9136F7 #B171F9 #D1ACFB #EFE2FE

Accessibility & contrast

On white

3.18
#B171F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#B171F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171F9
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171F9#FFFFFF#000000##000000
##B171F91.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8FFE
Deuteranopia (green-blind)
#5490F6
Tritanopia (blue-blind)
#A48BAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b171f9;
/* rgb */ color: rgb(177, 113, 249);
/* oklch */ color: oklch(67.6% 0.198 303.2);
Tailwind
colors: {
  custom: {
    50: '#cc9cfc',
    500: '#b171f9',
    950: '#000000',
  },
}
SCSS
$custom: #b171f9;
$custom-light: #cc9cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b171f9",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 268.235,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.6757,
    "c": 0.19834,
    "h": 303.2
  },
  "luminance": 0.27997
}

Semantic roles & 50–950 ramp

primary
#B171F9
secondary
#E4F5D1
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B171F9

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

Preview Lab → · Contrast checker → · Palette generator →

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