#B173F8#B173F8

#B173F8 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.8% C 0.194 H 303.1°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#B173F8
RGBrgb(177, 115, 248)
HSLhsl(268, 90%, 71%)
HSVhsv(268, 54%, 97%)
CMYKcmyk(28.6%, 53.6%, 0%, 2.7%)
CIE-LABlab(60.24, 49.81, -57.70)
CIE-LCHlch(60.24, 76.23, 310.80°)
OKLaboklab(67.81% 0.1061 -0.1627)
OKLCHoklch(67.81% 0.194 303.1)
XYZxyz(41.2017, 28.3859, 92.0972)
Luminance0.2839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B173F8 #BAF873
analogous
#7377F8 #B173F8 #F373F8
triadic
#B173F8 #F8B173 #73F8B1
tetradic
#B173F8 #F87377 #BAF873 #73F8F3
square
#B173F8 #F87377 #BAF873 #73F8F3
split-complementary
#B173F8 #F8F373 #77F873
monochromatic
#710BE5 #9139F5 #B173F8 #D1ADFB #EFE2FE

Accessibility & contrast

On white

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

On black

6.68
#B173F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B173F8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B173F8#FFFFFF#000000##000000
##B173F81.003.156.686.68
#FFFFFF3.151.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4290FC
Deuteranopia (green-blind)
#5791F5
Tritanopia (blue-blind)
#A48CAB
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b173f8;
/* rgb */ color: rgb(177, 115, 248);
/* oklch */ color: oklch(67.8% 0.194 303.1);
Tailwind
colors: {
  custom: {
    50: '#cc9dfb',
    500: '#b173f8',
    950: '#000000',
  },
}
SCSS
$custom: #b173f8;
$custom-light: #cc9dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b173f8",
  "rgb": {
    "r": 177,
    "g": 115,
    "b": 248
  },
  "hsl": {
    "h": 267.97,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67809,
    "c": 0.19424,
    "h": 303.1
  },
  "luminance": 0.28386
}

Semantic roles & 50–950 ramp

primary
#B173F8
secondary
#E5F5D2
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B173F8

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

Preview Lab → · Contrast checker → · Palette generator →

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