#B170CB#B170CB

#B170CB is a light, vivid purple. Relative luminance 0.252; OKLCH L 64.9% C 0.147 H 315.7°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#B170CB
RGBrgb(177, 112, 203)
HSLhsl(283, 47%, 62%)
HSVhsv(283, 45%, 80%)
CMYKcmyk(12.8%, 44.8%, 0%, 20.4%)
CIE-LABlab(57.32, 41.35, -37.13)
CIE-LCHlch(57.32, 55.58, 318.07°)
OKLaboklab(64.9% 0.1055 -0.1028)
OKLCHoklch(64.9% 0.147 315.7)
XYZxyz(34.7035, 25.2482, 59.5336)
Luminance0.2525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170CB #8ACB70
analogous
#8470CB #B170CB #CB70B8
triadic
#B170CB #CBB170 #70CBB1
tetradic
#B170CB #CB8470 #8ACB70 #70B8CB
square
#B170CB #CB8470 #8ACB70 #70B8CB
split-complementary
#B170CB #B8CB70 #70CB84
monochromatic
#74338D #9844BA #B170CB #C99DDB #E2CAEC

Accessibility & contrast

On white

3.47
#B170CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#B170CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170CB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170CB#FFFFFF#000000##000000
##B170CB1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86CE
Deuteranopia (green-blind)
#718CC8
Tritanopia (blue-blind)
#B07D94
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b170cb;
/* rgb */ color: rgb(177, 112, 203);
/* oklch */ color: oklch(64.9% 0.147 315.7);
Tailwind
colors: {
  custom: {
    50: '#ca9bdb',
    500: '#b170cb',
    950: '#000000',
  },
}
SCSS
$custom: #b170cb;
$custom-light: #ca9bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b170cb",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 282.857,
    "s": 46.667,
    "l": 61.765
  },
  "oklch": {
    "l": 0.64897,
    "c": 0.1473,
    "h": 315.7
  },
  "luminance": 0.25247
}

Semantic roles & 50–950 ramp

primary
#B170CB
secondary
#C4DCBB
accent
#BA2C54
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B170CB

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

Preview Lab → · Contrast checker → · Palette generator →

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