#B172CC#B172CC

#B172CC is a light, vivid purple. Relative luminance 0.257; OKLCH L 65.3% C 0.145 H 315.1°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#B172CC
RGBrgb(177, 114, 204)
HSLhsl(282, 47%, 62%)
HSVhsv(282, 44%, 80%)
CMYKcmyk(13.2%, 44.1%, 0%, 20%)
CIE-LABlab(57.79, 40.47, -36.96)
CIE-LCHlch(57.79, 54.81, 317.60°)
OKLaboklab(65.27% 0.1028 -0.1023)
OKLCHoklch(65.27% 0.145 315.1)
XYZxyz(35.0462, 25.7423, 60.2376)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172CC #8DCC72
analogous
#8472CC #B172CC #CC72BA
triadic
#B172CC #CCB172 #72CCB1
tetradic
#B172CC #CC8472 #8DCC72 #72BACC
square
#B172CC #CC8472 #8DCC72 #72BACC
split-complementary
#B172CC #BACC72 #72CC84
monochromatic
#743490 #9845BC #B172CC #CA9FDC #E3CCED

Accessibility & contrast

On white

3.42
#B172CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#B172CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172CC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172CC#FFFFFF#000000##000000
##B172CC1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187CF
Deuteranopia (green-blind)
#728DC9
Tritanopia (blue-blind)
#AF7F95
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b172cc;
/* rgb */ color: rgb(177, 114, 204);
/* oklch */ color: oklch(65.3% 0.145 315.1);
Tailwind
colors: {
  custom: {
    50: '#ca9cdc',
    500: '#b172cc',
    950: '#000000',
  },
}
SCSS
$custom: #b172cc;
$custom-light: #ca9cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b172cc",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 204
  },
  "hsl": {
    "h": 282,
    "s": 46.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.65268,
    "c": 0.14502,
    "h": 315.1
  },
  "luminance": 0.25741
}

Semantic roles & 50–950 ramp

primary
#B172CC
secondary
#C6DDBC
accent
#BA2B56
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B172CC

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

Preview Lab → · Contrast checker → · Palette generator →

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