#B173F7#B173F7

#B173F7 is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.8% C 0.193 H 303.3°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#B173F7
RGBrgb(177, 115, 247)
HSLhsl(268, 89%, 71%)
HSVhsv(268, 53%, 97%)
CMYKcmyk(28.3%, 53.4%, 0%, 3.1%)
CIE-LABlab(60.18, 49.57, -57.24)
CIE-LCHlch(60.18, 75.72, 310.89°)
OKLaboklab(67.75% 0.1061 -0.1613)
OKLCHoklch(67.75% 0.193 303.3)
XYZxyz(41.0470, 28.3240, 91.2823)
Luminance0.2832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B173F7 #B9F773
analogous
#7377F7 #B173F7 #F373F7
triadic
#B173F7 #F7B173 #73F7B1
tetradic
#B173F7 #F77377 #B9F773 #73F7F3
square
#B173F7 #F77377 #B9F773 #73F7F3
split-complementary
#B173F7 #F7F373 #77F773
monochromatic
#710DE3 #9139F4 #B173F7 #D1ADFA #EFE2FD

Accessibility & contrast

On white

3.15
#B173F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#B173F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B173F7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B173F7#FFFFFF#000000##000000
##B173F71.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4390FB
Deuteranopia (green-blind)
#5891F4
Tritanopia (blue-blind)
#A48CAA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b173f7;
/* rgb */ color: rgb(177, 115, 247);
/* oklch */ color: oklch(67.8% 0.193 303.3);
Tailwind
colors: {
  custom: {
    50: '#cc9dfa',
    500: '#b173f7',
    950: '#000000',
  },
}
SCSS
$custom: #b173f7;
$custom-light: #cc9dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b173f7",
  "rgb": {
    "r": 177,
    "g": 115,
    "b": 247
  },
  "hsl": {
    "h": 268.182,
    "s": 89.189,
    "l": 70.98
  },
  "oklch": {
    "l": 0.67751,
    "c": 0.19307,
    "h": 303.3
  },
  "luminance": 0.28324
}

Semantic roles & 50–950 ramp

primary
#B173F7
secondary
#E4F4D1
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B173F7

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

Preview Lab → · Contrast checker → · Palette generator →

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