#B172CD#B172CD

#B172CD is a light, vivid purple. Relative luminance 0.258; OKLCH L 65.3% C 0.146 H 314.8°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#B172CD
RGBrgb(177, 114, 205)
HSLhsl(282, 48%, 63%)
HSVhsv(282, 44%, 80%)
CMYKcmyk(13.7%, 44.4%, 0%, 19.6%)
CIE-LABlab(57.84, 40.68, -37.45)
CIE-LCHlch(57.84, 55.30, 317.37°)
OKLaboklab(65.32% 0.1029 -0.1037)
OKLCHoklch(65.32% 0.146 314.8)
XYZxyz(35.1665, 25.7904, 60.8713)
Luminance0.2579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172CD #8ECD72
analogous
#8372CD #B172CD #CD72BC
triadic
#B172CD #CDB172 #72CDB1
tetradic
#B172CD #CD8372 #8ECD72 #72BCCD
square
#B172CD #CD8372 #8ECD72 #72BCCD
split-complementary
#B172CD #BCCD72 #72CD83
monochromatic
#743391 #9845BD #B172CD #CA9FDD #E3CCED

Accessibility & contrast

On white

3.41
#B172CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#B172CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172CD
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172CD#FFFFFF#000000##000000
##B172CD1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187D0
Deuteranopia (green-blind)
#728DCA
Tritanopia (blue-blind)
#AF7F96
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b172cd;
/* rgb */ color: rgb(177, 114, 205);
/* oklch */ color: oklch(65.3% 0.146 314.8);
Tailwind
colors: {
  custom: {
    50: '#ca9cdc',
    500: '#b172cd',
    950: '#000000',
  },
}
SCSS
$custom: #b172cd;
$custom-light: #ca9cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b172cd",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 281.538,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.65317,
    "c": 0.14615,
    "h": 314.8
  },
  "luminance": 0.2579
}

Semantic roles & 50–950 ramp

primary
#B172CD
secondary
#C7DEBD
accent
#BB2B57
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B172CD

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

Preview Lab → · Contrast checker → · Palette generator →

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