#B172C8#B172C8

#B172C8 is a light, vivid purple. Relative luminance 0.256; OKLCH L 65.1% C 0.141 H 316.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#B172C8
RGBrgb(177, 114, 200)
HSLhsl(284, 44%, 62%)
HSVhsv(284, 43%, 78%)
CMYKcmyk(11.5%, 43%, 0%, 21.6%)
CIE-LABlab(57.61, 39.63, -34.97)
CIE-LCHlch(57.61, 52.86, 318.57°)
OKLaboklab(65.07% 0.1021 -0.0966)
OKLCHoklch(65.07% 0.141 316.6)
XYZxyz(34.5726, 25.5528, 57.7434)
Luminance0.2555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172C8 #89C872
analogous
#8672C8 #B172C8 #C872B4
triadic
#B172C8 #C8B172 #72C8B1
tetradic
#B172C8 #C88672 #89C872 #72B4C8
square
#B172C8 #C88672 #89C872 #72B4C8
split-complementary
#B172C8 #B4C872 #72C886
monochromatic
#73368A #9847B6 #B172C8 #C99ED9 #E2CAEA

Accessibility & contrast

On white

3.44
#B172C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#B172C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172C8
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172C8#FFFFFF#000000##000000
##B172C81.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6386CB
Deuteranopia (green-blind)
#748CC6
Tritanopia (blue-blind)
#B07E93
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b172c8;
/* rgb */ color: rgb(177, 114, 200);
/* oklch */ color: oklch(65.1% 0.141 316.6);
Tailwind
colors: {
  custom: {
    50: '#ca9cd9',
    500: '#b172c8',
    950: '#000000',
  },
}
SCSS
$custom: #b172c8;
$custom-light: #ca9cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b172c8",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 200
  },
  "hsl": {
    "h": 283.953,
    "s": 43.878,
    "l": 61.569
  },
  "oklch": {
    "l": 0.65072,
    "c": 0.14053,
    "h": 316.6
  },
  "luminance": 0.25552
}

Semantic roles & 50–950 ramp

primary
#B172C8
secondary
#C3DBBB
accent
#B72E53
background
#FCF9FD
surface
#F8F2FA
border
#D1CCD3
text
#130E14
muted
#827E83

Preview Lab

Preview with #B172C8

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

Preview Lab → · Contrast checker → · Palette generator →

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