#B170BF#B170BF

#B170BF is a light, vivid purple. Relative luminance 0.247; OKLCH L 64.3% C 0.134 H 320.3°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B170BF
RGBrgb(177, 112, 191)
HSLhsl(289, 38%, 59%)
HSVhsv(289, 41%, 75%)
CMYKcmyk(7.3%, 41.4%, 0%, 25.1%)
CIE-LABlab(56.78, 38.88, -31.14)
CIE-LCHlch(56.78, 49.81, 321.31°)
OKLaboklab(64.32% 0.1033 -0.0856)
OKLCHoklch(64.32% 0.134 320.3)
XYZxyz(33.3284, 24.6982, 52.2917)
Luminance0.2470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170BF #7EBF70
analogous
#8A70BF #B170BF #BF70A6
triadic
#B170BF #BFB170 #70BFB1
tetradic
#B170BF #BF8A70 #7EBF70 #70A6BF
square
#B170BF #BF8A70 #7EBF70 #70A6BF
split-complementary
#B170BF #A6BF70 #70BF8A
monochromatic
#71387D #974BA7 #B170BF #C89AD2 #DFC5E5

Accessibility & contrast

On white

3.54
#B170BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#B170BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170BF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170BF#FFFFFF#000000##000000
##B170BF1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6584C2
Deuteranopia (green-blind)
#768BBD
Tritanopia (blue-blind)
#B27A8E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b170bf;
/* rgb */ color: rgb(177, 112, 191);
/* oklch */ color: oklch(64.3% 0.134 320.3);
Tailwind
colors: {
  custom: {
    50: '#ca9ad2',
    500: '#b170bf',
    950: '#000000',
  },
}
SCSS
$custom: #b170bf;
$custom-light: #ca9ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#b170bf",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 191
  },
  "hsl": {
    "h": 289.367,
    "s": 38.164,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6432,
    "c": 0.13412,
    "h": 320.3
  },
  "luminance": 0.24697
}

Semantic roles & 50–950 ramp

primary
#B170BF
secondary
#BBD5B6
accent
#CE5A6E
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #B170BF

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

Preview Lab → · Contrast checker → · Palette generator →

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