#B172F9#B172F9

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

Color values

HEX#B172F9
RGBrgb(177, 114, 249)
HSLhsl(268, 92%, 71%)
HSVhsv(268, 54%, 98%)
CMYKcmyk(28.9%, 54.2%, 0%, 2.4%)
CIE-LABlab(60.09, 50.57, -58.49)
CIE-LCHlch(60.09, 77.32, 310.85°)
OKLaboklab(67.72% 0.1074 -0.165)
OKLCHoklch(67.72% 0.197 303.1)
XYZxyz(41.2438, 28.2213, 92.8786)
Luminance0.2822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172F9 #BAF972
analogous
#7276F9 #B172F9 #F572F9
triadic
#B172F9 #F9B172 #72F9B1
tetradic
#B172F9 #F97276 #BAF972 #72F9F5
square
#B172F9 #F97276 #BAF972 #72F9F5
split-complementary
#B172F9 #F9F572 #76F972
monochromatic
#710AE7 #9137F7 #B172F9 #D1ADFB #EFE2FE

Accessibility & contrast

On white

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

On black

6.64
#B172F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172F9
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172F9#FFFFFF#000000##000000
##B172F91.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8FFE
Deuteranopia (green-blind)
#5591F6
Tritanopia (blue-blind)
#A48CAB
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b172f9;
/* rgb */ color: rgb(177, 114, 249);
/* oklch */ color: oklch(67.7% 0.197 303.1);
Tailwind
colors: {
  custom: {
    50: '#cc9cfc',
    500: '#b172f9',
    950: '#000000',
  },
}
SCSS
$custom: #b172f9;
$custom-light: #cc9cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b172f9",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 249
  },
  "hsl": {
    "h": 268,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67719,
    "c": 0.19687,
    "h": 303.1
  },
  "luminance": 0.28221
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B172F9

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

Preview Lab → · Contrast checker → · Palette generator →

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