#B172BF#B172BF

#B172BF is a light, vivid purple. Relative luminance 0.251; OKLCH L 64.6% C 0.131 H 320.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#B172BF
RGBrgb(177, 114, 191)
HSLhsl(289, 38%, 60%)
HSVhsv(289, 40%, 75%)
CMYKcmyk(7.3%, 40.3%, 0%, 25.1%)
CIE-LABlab(57.22, 37.78, -30.46)
CIE-LCHlch(57.22, 48.53, 321.12°)
OKLaboklab(64.65% 0.1003 -0.0837)
OKLCHoklch(64.65% 0.131 320.2)
XYZxyz(33.5516, 25.1444, 52.3661)
Luminance0.2514 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172BF #80BF72
analogous
#8B72BF #B172BF #BF72A7
triadic
#B172BF #BFB172 #72BFB1
tetradic
#B172BF #BF8B72 #80BF72 #72A7BF
square
#B172BF #BF8B72 #80BF72 #72A7BF
split-complementary
#B172BF #A7BF72 #72BF8B
monochromatic
#71397E #974CA8 #B172BF #C89CD2 #E0C6E5

Accessibility & contrast

On white

3.48
#B172BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#B172BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172BF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172BF#FFFFFF#000000##000000
##B172BF1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6885C2
Deuteranopia (green-blind)
#788CBD
Tritanopia (blue-blind)
#B27B8F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b172bf;
/* rgb */ color: rgb(177, 114, 191);
/* oklch */ color: oklch(64.6% 0.131 320.2);
Tailwind
colors: {
  custom: {
    50: '#c99cd2',
    500: '#b172bf',
    950: '#000000',
  },
}
SCSS
$custom: #b172bf;
$custom-light: #c99cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#b172bf",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 191
  },
  "hsl": {
    "h": 289.091,
    "s": 37.561,
    "l": 59.804
  },
  "oklch": {
    "l": 0.64647,
    "c": 0.1306,
    "h": 320.2
  },
  "luminance": 0.25143
}

Semantic roles & 50–950 ramp

primary
#B172BF
secondary
#BDD5B8
accent
#CE5A6F
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #B172BF

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

Preview Lab → · Contrast checker → · Palette generator →

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