#B17BE4#B17BE4

#B17BE4 is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.0% C 0.158 H 306.4°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#B17BE4
RGBrgb(177, 123, 228)
HSLhsl(271, 66%, 69%)
HSVhsv(271, 46%, 89%)
CMYKcmyk(22.4%, 46.1%, 0%, 10.6%)
CIE-LABlab(60.88, 40.84, -45.58)
CIE-LCHlch(60.88, 61.20, 311.86°)
OKLaboklab(67.95% 0.0938 -0.1273)
OKLCHoklch(67.95% 0.158 306.4)
XYZxyz(39.2152, 29.1148, 76.9376)
Luminance0.2911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17BE4 #AEE47B
analogous
#7D7BE4 #B17BE4 #E47BE3
triadic
#B17BE4 #E4B17B #7BE4B1
tetradic
#B17BE4 #E47D7B #AEE47B #7BE3E4
square
#B17BE4 #E47D7B #AEE47B #7BE3E4
split-complementary
#B17BE4 #E3E47B #7BE47D
monochromatic
#7427BE #9348DA #B17BE4 #CFAEEE #EDE1F9

Accessibility & contrast

On white

3.08
#B17BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#B17BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B17BE4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17BE4#FFFFFF#000000##000000
##B17BE41.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6091E8
Deuteranopia (green-blind)
#6E93E1
Tritanopia (blue-blind)
#A98DA5
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b17be4;
/* rgb */ color: rgb(177, 123, 228);
/* oklch */ color: oklch(68.0% 0.158 306.4);
Tailwind
colors: {
  custom: {
    50: '#caa2ed',
    500: '#b17be4',
    950: '#000000',
  },
}
SCSS
$custom: #b17be4;
$custom-light: #caa2ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b17be4",
  "rgb": {
    "r": 177,
    "g": 123,
    "b": 228
  },
  "hsl": {
    "h": 270.857,
    "s": 66.038,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67951,
    "c": 0.15814,
    "h": 306.4
  },
  "luminance": 0.29114
}

Semantic roles & 50–950 ramp

primary
#B17BE4
secondary
#DDEDCE
accent
#CE1870
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #B17BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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