#B171EA#B171EA

#B171EA is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.7% C 0.181 H 306.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#B171EA
RGBrgb(177, 113, 234)
HSLhsl(272, 74%, 68%)
HSVhsv(272, 52%, 92%)
CMYKcmyk(24.4%, 51.7%, 0%, 8.2%)
CIE-LABlab(59.07, 47.62, -51.80)
CIE-LCHlch(59.07, 70.37, 312.59°)
OKLaboklab(66.7% 0.1078 -0.1454)
OKLCHoklch(66.7% 0.181 306.6)
XYZxyz(38.8848, 27.0982, 81.0079)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171EA #AAEA71
analogous
#7571EA #B171EA #EA71E6
triadic
#B171EA #EAB171 #71EAB1
tetradic
#B171EA #EA7571 #AAEA71 #71E6EA
square
#B171EA #EA7571 #AAEA71 #71E6EA
split-complementary
#B171EA #E6EA71 #71EA75
monochromatic
#751DC4 #943CE2 #B171EA #CEA6F2 #ECDCFA

Accessibility & contrast

On white

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

On black

6.42
#B171EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171EA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171EA#FFFFFF#000000##000000
##B171EA1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8CEE
Deuteranopia (green-blind)
#608FE7
Tritanopia (blue-blind)
#A887A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b171ea;
/* rgb */ color: rgb(177, 113, 234);
/* oklch */ color: oklch(66.7% 0.181 306.6);
Tailwind
colors: {
  custom: {
    50: '#cb9cf1',
    500: '#b171ea',
    950: '#000000',
  },
}
SCSS
$custom: #b171ea;
$custom-light: #cb9cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b171ea",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 271.736,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.66699,
    "c": 0.18104,
    "h": 306.6
  },
  "luminance": 0.27098
}

Semantic roles & 50–950 ramp

primary
#B171EA
secondary
#DAEEC9
accent
#D60F6D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B171EA

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

Preview Lab → · Contrast checker → · Palette generator →

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