#B171F5#B171F5

#B171F5 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.3% C 0.194 H 304.1°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#B171F5
RGBrgb(177, 113, 245)
HSLhsl(269, 87%, 70%)
HSVhsv(269, 54%, 96%)
CMYKcmyk(27.8%, 53.9%, 0%, 3.9%)
CIE-LABlab(59.66, 50.16, -56.96)
CIE-LCHlch(59.66, 75.90, 311.37°)
OKLaboklab(67.33% 0.1085 -0.1605)
OKLCHoklch(67.33% 0.194 304.1)
XYZxyz(40.5144, 27.7501, 89.5904)
Luminance0.2775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171F5 #B5F571
analogous
#7173F5 #B171F5 #F371F5
triadic
#B171F5 #F5B171 #71F5B1
tetradic
#B171F5 #F57173 #B5F571 #71F5F3
square
#B171F5 #F57173 #B5F571 #71F5F3
split-complementary
#B171F5 #F5F371 #73F571
monochromatic
#7310DC #9238F1 #B171F5 #D0AAF9 #EFE2FD

Accessibility & contrast

On white

3.21
#B171F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#B171F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171F5
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171F5#FFFFFF#000000##000000
##B171F51.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#428EF9
Deuteranopia (green-blind)
#5790F2
Tritanopia (blue-blind)
#A58AA8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b171f5;
/* rgb */ color: rgb(177, 113, 245);
/* oklch */ color: oklch(67.3% 0.194 304.1);
Tailwind
colors: {
  custom: {
    50: '#cc9cf9',
    500: '#b171f5',
    950: '#000000',
  },
}
SCSS
$custom: #b171f5;
$custom-light: #cc9cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b171f5",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 269.091,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67333,
    "c": 0.19373,
    "h": 304.1
  },
  "luminance": 0.2775
}

Semantic roles & 50–950 ramp

primary
#B171F5
secondary
#E1F3CF
accent
#E30276
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B171F5

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

Preview Lab → · Contrast checker → · Palette generator →

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