#B173EC#B173EC

#B173EC is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.1% C 0.180 H 305.8°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#B173EC
RGBrgb(177, 115, 236)
HSLhsl(271, 76%, 69%)
HSVhsv(271, 51%, 93%)
CMYKcmyk(25%, 51.3%, 0%, 7.5%)
CIE-LABlab(59.58, 47.01, -52.09)
CIE-LCHlch(59.58, 70.17, 312.07°)
OKLaboklab(67.12% 0.1054 -0.1463)
OKLCHoklch(67.12% 0.18 305.8)
XYZxyz(39.3993, 27.6650, 82.6049)
Luminance0.2767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B173EC #AEEC73
analogous
#7573EC #B173EC #EC73EB
triadic
#B173EC #ECB173 #73ECB1
tetradic
#B173EC #EC7573 #AEEC73 #73EBEC
square
#B173EC #EC7573 #AEEC73 #73EBEC
split-complementary
#B173EC #EBEC73 #73EC75
monochromatic
#741BC9 #933DE5 #B173EC #CFA9F3 #EDDFFB

Accessibility & contrast

On white

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

On black

6.53
#B173EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B173EC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B173EC#FFFFFF#000000##000000
##B173EC1.003.216.536.53
#FFFFFF3.211.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DF0
Deuteranopia (green-blind)
#6090E9
Tritanopia (blue-blind)
#A789A5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b173ec;
/* rgb */ color: rgb(177, 115, 236);
/* oklch */ color: oklch(67.1% 0.180 305.8);
Tailwind
colors: {
  custom: {
    50: '#cb9df3',
    500: '#b173ec',
    950: '#000000',
  },
}
SCSS
$custom: #b173ec;
$custom-light: #cb9df3;
$custom-dark: #000000;
JSON
{
  "hex": "#b173ec",
  "rgb": {
    "r": 177,
    "g": 115,
    "b": 236
  },
  "hsl": {
    "h": 270.744,
    "s": 76.101,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67118,
    "c": 0.18027,
    "h": 305.8
  },
  "luminance": 0.27665
}

Semantic roles & 50–950 ramp

primary
#B173EC
secondary
#DDEFCC
accent
#D80D70
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B173EC

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

Preview Lab → · Contrast checker → · Palette generator →

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