#B170DB#B170DB

#B170DB is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.7% C 0.165 H 310.6°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#B170DB
RGBrgb(177, 112, 219)
HSLhsl(276, 60%, 65%)
HSVhsv(276, 49%, 86%)
CMYKcmyk(19.2%, 48.9%, 0%, 14.1%)
CIE-LABlab(58.09, 44.79, -44.96)
CIE-LCHlch(58.09, 63.47, 314.89°)
OKLaboklab(65.72% 0.1077 -0.1255)
OKLCHoklch(65.72% 0.165 310.6)
XYZxyz(36.7095, 26.0506, 70.0985)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170DB #9ADB70
analogous
#7C70DB #B170DB #DB70CF
triadic
#B170DB #DBB170 #70DBB1
tetradic
#B170DB #DB7C70 #9ADB70 #70CFDB
square
#B170DB #DB7C70 #9ADB70 #70CFDB
split-complementary
#B170DB #CFDB70 #70DB7C
monochromatic
#762AA7 #963FCF #B170DB #CCA1E7 #E6D2F4

Accessibility & contrast

On white

3.38
#B170DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#B170DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170DB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170DB#FFFFFF#000000##000000
##B170DB1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5688DF
Deuteranopia (green-blind)
#688DD8
Tritanopia (blue-blind)
#AC819B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b170db;
/* rgb */ color: rgb(177, 112, 219);
/* oklch */ color: oklch(65.7% 0.165 310.6);
Tailwind
colors: {
  custom: {
    50: '#ca9be6',
    500: '#b170db',
    950: '#000000',
  },
}
SCSS
$custom: #b170db;
$custom-light: #ca9be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b170db",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 276.449,
    "s": 59.777,
    "l": 64.902
  },
  "oklch": {
    "l": 0.65721,
    "c": 0.16538,
    "h": 310.6
  },
  "luminance": 0.2605
}

Semantic roles & 50–950 ramp

primary
#B170DB
secondary
#CFE6C1
accent
#C71E61
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B170DB

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

Preview Lab → · Contrast checker → · Palette generator →

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