#B170D8#B170D8

#B170D8 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.6% C 0.162 H 311.5°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#B170D8
RGBrgb(177, 112, 216)
HSLhsl(278, 57%, 64%)
HSVhsv(278, 48%, 85%)
CMYKcmyk(18.1%, 48.1%, 0%, 15.3%)
CIE-LABlab(57.94, 44.13, -43.51)
CIE-LCHlch(57.94, 61.98, 315.41°)
OKLaboklab(65.56% 0.1074 -0.1213)
OKLCHoklch(65.56% 0.162 311.5)
XYZxyz(36.3181, 25.8940, 68.0373)
Luminance0.2589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170D8 #97D870
analogous
#7D70D8 #B170D8 #D870CB
triadic
#B170D8 #D8B170 #70D8B1
tetradic
#B170D8 #D87D70 #97D870 #70CBD8
square
#B170D8 #D87D70 #97D870 #70CBD8
split-complementary
#B170D8 #CBD870 #70D87D
monochromatic
#752CA2 #9740CB #B170D8 #CBA0E5 #E5D0F2

Accessibility & contrast

On white

3.40
#B170D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#B170D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170D8
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170D8#FFFFFF#000000##000000
##B170D81.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5888DC
Deuteranopia (green-blind)
#6A8DD5
Tritanopia (blue-blind)
#AD819A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b170d8;
/* rgb */ color: rgb(177, 112, 216);
/* oklch */ color: oklch(65.6% 0.162 311.5);
Tailwind
colors: {
  custom: {
    50: '#ca9be4',
    500: '#b170d8',
    950: '#000000',
  },
}
SCSS
$custom: #b170d8;
$custom-light: #ca9be4;
$custom-dark: #000000;
JSON
{
  "hex": "#b170d8",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 216
  },
  "hsl": {
    "h": 277.5,
    "s": 57.143,
    "l": 64.314
  },
  "oklch": {
    "l": 0.65562,
    "c": 0.16196,
    "h": 311.5
  },
  "luminance": 0.25893
}

Semantic roles & 50–950 ramp

primary
#B170D8
secondary
#CDE4C0
accent
#C5215E
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E15
muted
#827E84

Preview Lab

Preview with #B170D8

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

Preview Lab → · Contrast checker → · Palette generator →

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