#B172F6#B172F6

#B172F6 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.5% C 0.193 H 303.7°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#B172F6
RGBrgb(177, 114, 246)
HSLhsl(269, 88%, 71%)
HSVhsv(269, 54%, 96%)
CMYKcmyk(28%, 53.7%, 0%, 3.5%)
CIE-LABlab(59.92, 49.87, -57.10)
CIE-LCHlch(59.92, 75.81, 311.13°)
OKLaboklab(67.54% 0.1073 -0.1609)
OKLCHoklch(67.54% 0.193 303.7)
XYZxyz(40.7796, 28.0357, 90.4340)
Luminance0.2804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172F6 #B7F672
analogous
#7275F6 #B172F6 #F372F6
triadic
#B172F6 #F6B172 #72F6B1
tetradic
#B172F6 #F67275 #B7F672 #72F6F3
square
#B172F6 #F67275 #B7F672 #72F6F3
split-complementary
#B172F6 #F6F372 #75F672
monochromatic
#720EDF #9138F2 #B172F6 #D1ACFA #EFE2FD

Accessibility & contrast

On white

3.18
#B172F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#B172F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172F6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172F6#FFFFFF#000000##000000
##B172F61.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#428FFA
Deuteranopia (green-blind)
#5790F3
Tritanopia (blue-blind)
#A58BA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b172f6;
/* rgb */ color: rgb(177, 114, 246);
/* oklch */ color: oklch(67.5% 0.193 303.7);
Tailwind
colors: {
  custom: {
    50: '#cc9cfa',
    500: '#b172f6',
    950: '#000000',
  },
}
SCSS
$custom: #b172f6;
$custom-light: #cc9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b172f6",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 246
  },
  "hsl": {
    "h": 268.636,
    "s": 88,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67541,
    "c": 0.1934,
    "h": 303.7
  },
  "luminance": 0.28036
}

Semantic roles & 50–950 ramp

primary
#B172F6
secondary
#E3F4D0
accent
#E50178
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B172F6

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

Preview Lab → · Contrast checker → · Palette generator →

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