#B171EB#B171EB

#B171EB is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.8% C 0.182 H 306.3°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#B171EB
RGBrgb(177, 113, 235)
HSLhsl(271, 75%, 68%)
HSVhsv(271, 52%, 92%)
CMYKcmyk(24.7%, 51.9%, 0%, 7.8%)
CIE-LABlab(59.12, 47.85, -52.28)
CIE-LCHlch(59.12, 70.87, 312.47°)
OKLaboklab(66.76% 0.1079 -0.1468)
OKLCHoklch(66.76% 0.182 306.3)
XYZxyz(39.0289, 27.1559, 81.7667)
Luminance0.2716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171EB #ABEB71
analogous
#7471EB #B171EB #EB71E8
triadic
#B171EB #EBB171 #71EBB1
tetradic
#B171EB #EB7471 #ABEB71 #71E8EB
square
#B171EB #EB7471 #ABEB71 #71E8EB
split-complementary
#B171EB #E8EB71 #71EB74
monochromatic
#751CC6 #943BE3 #B171EB #CEA7F3 #ECDCFA

Accessibility & contrast

On white

3.27
#B171EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#B171EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171EB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171EB#FFFFFF#000000##000000
##B171EB1.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8CEF
Deuteranopia (green-blind)
#5F8FE8
Tritanopia (blue-blind)
#A887A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b171eb;
/* rgb */ color: rgb(177, 113, 235);
/* oklch */ color: oklch(66.8% 0.182 306.3);
Tailwind
colors: {
  custom: {
    50: '#cb9cf2',
    500: '#b171eb',
    950: '#000000',
  },
}
SCSS
$custom: #b171eb;
$custom-light: #cb9cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b171eb",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 271.475,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66755,
    "c": 0.1822,
    "h": 306.3
  },
  "luminance": 0.27156
}

Semantic roles & 50–950 ramp

primary
#B171EB
secondary
#DBEEC9
accent
#D70E6E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B171EB

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

Preview Lab → · Contrast checker → · Palette generator →

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