#B17BEC#B17BEC

#B17BEC is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.4% C 0.168 H 304.4°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#B17BEC
RGBrgb(177, 123, 236)
HSLhsl(269, 75%, 70%)
HSVhsv(269, 48%, 93%)
CMYKcmyk(25%, 47.9%, 0%, 7.5%)
CIE-LABlab(61.28, 42.68, -49.40)
CIE-LCHlch(61.28, 65.28, 310.83°)
OKLaboklab(68.38% 0.0948 -0.1384)
OKLCHoklch(68.38% 0.168 304.4)
XYZxyz(40.3515, 29.5693, 82.9223)
Luminance0.2957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B17BEC #B6EC7B
analogous
#7B7DEC #B17BEC #EA7BEC
triadic
#B17BEC #ECB17B #7BECB1
tetradic
#B17BEC #EC7B7D #B6EC7B #7BECEA
square
#B17BEC #EC7B7D #B6EC7B #7BECEA
split-complementary
#B17BEC #ECEA7B #7DEC7B
monochromatic
#721ECF #9146E4 #B17BEC #D1B0F4 #EFE4FB

Accessibility & contrast

On white

3.04
#B17BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#B17BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B17BEC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B17BEC#FFFFFF#000000##000000
##B17BEC1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B92F0
Deuteranopia (green-blind)
#6994E9
Tritanopia (blue-blind)
#A78FA8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b17bec;
/* rgb */ color: rgb(177, 123, 236);
/* oklch */ color: oklch(68.4% 0.168 304.4);
Tailwind
colors: {
  custom: {
    50: '#cba2f2',
    500: '#b17bec',
    950: '#000000',
  },
}
SCSS
$custom: #b17bec;
$custom-light: #cba2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b17bec",
  "rgb": {
    "r": 177,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 268.673,
    "s": 74.834,
    "l": 70.392
  },
  "oklch": {
    "l": 0.68378,
    "c": 0.16778,
    "h": 304.4
  },
  "luminance": 0.29569
}

Semantic roles & 50–950 ramp

primary
#B17BEC
secondary
#E2F1D2
accent
#D70F77
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B17BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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