#B170DD#B170DD

#B170DD is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.8% C 0.168 H 310.1°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#B170DD
RGBrgb(177, 112, 221)
HSLhsl(276, 62%, 65%)
HSVhsv(276, 49%, 87%)
CMYKcmyk(19.9%, 49.3%, 0%, 13.3%)
CIE-LABlab(58.19, 45.23, -45.93)
CIE-LCHlch(58.19, 64.46, 314.56°)
OKLaboklab(65.83% 0.108 -0.1283)
OKLCHoklch(65.83% 0.168 310.1)
XYZxyz(36.9744, 26.1565, 71.4935)
Luminance0.2616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170DD #9CDD70
analogous
#7A70DD #B170DD #DD70D2
triadic
#B170DD #DDB170 #70DDB1
tetradic
#B170DD #DD7A70 #9CDD70 #70D2DD
square
#B170DD #DD7A70 #9CDD70 #70D2DD
split-complementary
#B170DD #D2DD70 #70DD7A
monochromatic
#7628AA #963FD1 #B170DD #CCA1E9 #E7D3F5

Accessibility & contrast

On white

3.37
#B170DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#B170DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170DD
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170DD#FFFFFF#000000##000000
##B170DD1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5489E1
Deuteranopia (green-blind)
#678DDA
Tritanopia (blue-blind)
#AC829C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b170dd;
/* rgb */ color: rgb(177, 112, 221);
/* oklch */ color: oklch(65.8% 0.168 310.1);
Tailwind
colors: {
  custom: {
    50: '#ca9be8',
    500: '#b170dd',
    950: '#000000',
  },
}
SCSS
$custom: #b170dd;
$custom-light: #ca9be8;
$custom-dark: #000000;
JSON
{
  "hex": "#b170dd",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 221
  },
  "hsl": {
    "h": 275.78,
    "s": 61.582,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65828,
    "c": 0.16767,
    "h": 310.1
  },
  "luminance": 0.26156
}

Semantic roles & 50–950 ramp

primary
#B170DD
secondary
#D1E7C2
accent
#C91C62
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B170DD

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

Preview Lab → · Contrast checker → · Palette generator →

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