#B173F6#B173F6

#B173F6 is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.7% C 0.192 H 303.5°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#B173F6
RGBrgb(177, 115, 246)
HSLhsl(268, 88%, 71%)
HSVhsv(268, 53%, 96%)
CMYKcmyk(28%, 53.3%, 0%, 3.5%)
CIE-LABlab(60.13, 49.34, -56.77)
CIE-LCHlch(60.13, 75.22, 310.99°)
OKLaboklab(67.69% 0.106 -0.16)
OKLCHoklch(67.69% 0.192 303.5)
XYZxyz(40.8931, 28.2625, 90.4718)
Luminance0.2826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B173F6 #B8F673
analogous
#7376F6 #B173F6 #F273F6
triadic
#B173F6 #F6B173 #73F6B1
tetradic
#B173F6 #F67376 #B8F673 #73F6F2
square
#B173F6 #F67376 #B8F673 #73F6F2
split-complementary
#B173F6 #F6F273 #76F673
monochromatic
#720EE0 #9139F2 #B173F6 #D1ADFA #EFE2FD

Accessibility & contrast

On white

3.16
#B173F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#B173F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B173F6
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B173F6#FFFFFF#000000##000000
##B173F61.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#448FFA
Deuteranopia (green-blind)
#5991F3
Tritanopia (blue-blind)
#A58CAA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b173f6;
/* rgb */ color: rgb(177, 115, 246);
/* oklch */ color: oklch(67.7% 0.192 303.5);
Tailwind
colors: {
  custom: {
    50: '#cc9dfa',
    500: '#b173f6',
    950: '#000000',
  },
}
SCSS
$custom: #b173f6;
$custom-light: #cc9dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b173f6",
  "rgb": {
    "r": 177,
    "g": 115,
    "b": 246
  },
  "hsl": {
    "h": 268.397,
    "s": 87.919,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67692,
    "c": 0.19191,
    "h": 303.5
  },
  "luminance": 0.28262
}

Semantic roles & 50–950 ramp

primary
#B173F6
secondary
#E3F4D1
accent
#E40179
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B173F6

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

Preview Lab → · Contrast checker → · Palette generator →

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