#B170D5#B170D5

#B170D5 is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.4% C 0.159 H 312.4°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#B170D5
RGBrgb(177, 112, 213)
HSLhsl(279, 55%, 64%)
HSVhsv(279, 47%, 84%)
CMYKcmyk(16.9%, 47.4%, 0%, 16.5%)
CIE-LABlab(57.79, 43.48, -42.05)
CIE-LCHlch(57.79, 60.49, 315.96°)
OKLaboklab(65.41% 0.107 -0.117)
OKLCHoklch(65.41% 0.159 312.4)
XYZxyz(35.9338, 25.7403, 66.0133)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170D5 #94D570
analogous
#7E70D5 #B170D5 #D570C6
triadic
#B170D5 #D5B170 #70D5B1
tetradic
#B170D5 #D57E70 #94D570 #70C6D5
square
#B170D5 #D57E70 #94D570 #70C6D5
split-complementary
#B170D5 #C6D570 #70D57E
monochromatic
#752E9D #9741C7 #B170D5 #CB9FE3 #E5CFF1

Accessibility & contrast

On white

3.42
#B170D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#B170D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170D5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170D5#FFFFFF#000000##000000
##B170D51.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A87D9
Deuteranopia (green-blind)
#6C8CD2
Tritanopia (blue-blind)
#AE8099
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b170d5;
/* rgb */ color: rgb(177, 112, 213);
/* oklch */ color: oklch(65.4% 0.159 312.4);
Tailwind
colors: {
  custom: {
    50: '#ca9be2',
    500: '#b170d5',
    950: '#000000',
  },
}
SCSS
$custom: #b170d5;
$custom-light: #ca9be2;
$custom-dark: #000000;
JSON
{
  "hex": "#b170d5",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 213
  },
  "hsl": {
    "h": 278.614,
    "s": 54.595,
    "l": 63.725
  },
  "oklch": {
    "l": 0.65405,
    "c": 0.15855,
    "h": 312.4
  },
  "luminance": 0.2574
}

Semantic roles & 50–950 ramp

primary
#B170D5
secondary
#CBE2BF
accent
#C2235C
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B170D5

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

Preview Lab → · Contrast checker → · Palette generator →

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