#B170DF#B170DF

#B170DF is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.9% C 0.170 H 309.5°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#B170DF
RGBrgb(177, 112, 223)
HSLhsl(275, 63%, 66%)
HSVhsv(275, 50%, 87%)
CMYKcmyk(20.6%, 49.8%, 0%, 12.5%)
CIE-LABlab(58.29, 45.68, -46.89)
CIE-LCHlch(58.29, 65.46, 314.25°)
OKLaboklab(65.94% 0.1082 -0.1311)
OKLCHoklch(65.94% 0.17 309.5)
XYZxyz(37.2424, 26.2638, 72.9052)
Luminance0.2626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170DF #9EDF70
analogous
#7970DF #B170DF #DF70D6
triadic
#B170DF #DFB170 #70DFB1
tetradic
#B170DF #DF7970 #9EDF70 #70D6DF
square
#B170DF #DF7970 #9EDF70 #70D6DF
split-complementary
#B170DF #D6DF70 #70DF79
monochromatic
#7627AE #963ED4 #B170DF #CCA2EA #E8D4F5

Accessibility & contrast

On white

3.36
#B170DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#B170DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170DF
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170DF#FFFFFF#000000##000000
##B170DF1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5389E3
Deuteranopia (green-blind)
#668DDC
Tritanopia (blue-blind)
#AB839D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b170df;
/* rgb */ color: rgb(177, 112, 223);
/* oklch */ color: oklch(65.9% 0.170 309.5);
Tailwind
colors: {
  custom: {
    50: '#cb9be9',
    500: '#b170df',
    950: '#000000',
  },
}
SCSS
$custom: #b170df;
$custom-light: #cb9be9;
$custom-dark: #000000;
JSON
{
  "hex": "#b170df",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 223
  },
  "hsl": {
    "h": 275.135,
    "s": 63.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.65936,
    "c": 0.16996,
    "h": 309.5
  },
  "luminance": 0.26263
}

Semantic roles & 50–950 ramp

primary
#B170DF
secondary
#D2E8C3
accent
#CB1A64
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B170DF

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

Preview Lab → · Contrast checker → · Palette generator →

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