#B173EF#B173EF

#B173EF is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.3% C 0.184 H 305.1°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#B173EF
RGBrgb(177, 115, 239)
HSLhsl(270, 79%, 69%)
HSVhsv(270, 52%, 94%)
CMYKcmyk(25.9%, 51.9%, 0%, 6.3%)
CIE-LABlab(59.74, 47.71, -53.50)
CIE-LCHlch(59.74, 71.68, 311.72°)
OKLaboklab(67.29% 0.1056 -0.1504)
OKLCHoklch(67.29% 0.184 305.1)
XYZxyz(39.8389, 27.8408, 84.9197)
Luminance0.2784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B173EF #B1EF73
analogous
#7373EF #B173EF #EF73EF
triadic
#B173EF #EFB173 #73EFB1
tetradic
#B173EF #EF7373 #B1EF73 #73EFEF
square
#B173EF #EF7373 #B1EF73 #73EFEF
split-complementary
#B173EF #EFEF73 #73EF73
monochromatic
#7418D0 #923CE9 #B173EF #D0AAF5 #EEE1FC

Accessibility & contrast

On white

3.20
#B173EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#B173EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B173EF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B173EF#FFFFFF#000000##000000
##B173EF1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF3
Deuteranopia (green-blind)
#5E90EC
Tritanopia (blue-blind)
#A78AA6
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b173ef;
/* rgb */ color: rgb(177, 115, 239);
/* oklch */ color: oklch(67.3% 0.184 305.1);
Tailwind
colors: {
  custom: {
    50: '#cb9df5',
    500: '#b173ef',
    950: '#000000',
  },
}
SCSS
$custom: #b173ef;
$custom-light: #cb9df5;
$custom-dark: #000000;
JSON
{
  "hex": "#b173ef",
  "rgb": {
    "r": 177,
    "g": 115,
    "b": 239
  },
  "hsl": {
    "h": 270,
    "s": 79.487,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67288,
    "c": 0.18376,
    "h": 305.1
  },
  "luminance": 0.27841
}

Semantic roles & 50–950 ramp

primary
#B173EF
secondary
#DFF1CD
accent
#DC0A73
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B173EF

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

Preview Lab → · Contrast checker → · Palette generator →

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