#B172F8#B172F8

#B172F8 is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.7% C 0.196 H 303.3°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#B172F8
RGBrgb(177, 114, 248)
HSLhsl(268, 91%, 71%)
HSVhsv(268, 54%, 97%)
CMYKcmyk(28.6%, 54%, 0%, 2.7%)
CIE-LABlab(60.03, 50.34, -58.03)
CIE-LCHlch(60.03, 76.82, 310.94°)
OKLaboklab(67.66% 0.1074 -0.1636)
OKLCHoklch(67.66% 0.196 303.3)
XYZxyz(41.0883, 28.1591, 92.0594)
Luminance0.2816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172F8 #B9F872
analogous
#7276F8 #B172F8 #F472F8
triadic
#B172F8 #F8B172 #72F8B1
tetradic
#B172F8 #F87276 #B9F872 #72F8F4
square
#B172F8 #F87276 #B9F872 #72F8F4
split-complementary
#B172F8 #F8F472 #76F872
monochromatic
#710BE4 #9138F5 #B172F8 #D1ACFB #EFE2FE

Accessibility & contrast

On white

3.17
#B172F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#B172F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172F8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172F8#FFFFFF#000000##000000
##B172F81.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#408FFC
Deuteranopia (green-blind)
#5690F5
Tritanopia (blue-blind)
#A48CAA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b172f8;
/* rgb */ color: rgb(177, 114, 248);
/* oklch */ color: oklch(67.7% 0.196 303.3);
Tailwind
colors: {
  custom: {
    50: '#cc9cfb',
    500: '#b172f8',
    950: '#000000',
  },
}
SCSS
$custom: #b172f8;
$custom-light: #cc9cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b172f8",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 248
  },
  "hsl": {
    "h": 268.209,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.67659,
    "c": 0.19571,
    "h": 303.3
  },
  "luminance": 0.28159
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B172F8

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

Preview Lab → · Contrast checker → · Palette generator →

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