#B170DA#B170DA

#B170DA is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.7% C 0.164 H 310.9°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#B170DA
RGBrgb(177, 112, 218)
HSLhsl(277, 59%, 65%)
HSVhsv(277, 49%, 85%)
CMYKcmyk(18.8%, 48.6%, 0%, 14.5%)
CIE-LABlab(58.04, 44.57, -44.48)
CIE-LCHlch(58.04, 62.97, 315.06°)
OKLaboklab(65.67% 0.1076 -0.1241)
OKLCHoklch(65.67% 0.164 310.9)
XYZxyz(36.5782, 25.9981, 69.4073)
Luminance0.2600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B170DA #99DA70
analogous
#7C70DA #B170DA #DA70CE
triadic
#B170DA #DAB170 #70DAB1
tetradic
#B170DA #DA7C70 #99DA70 #70CEDA
square
#B170DA #DA7C70 #99DA70 #70CEDA
split-complementary
#B170DA #CEDA70 #70DA7C
monochromatic
#762BA5 #963FCD #B170DA #CCA1E7 #E6D1F3

Accessibility & contrast

On white

3.39
#B170DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#B170DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B170DA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B170DA#FFFFFF#000000##000000
##B170DA1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5688DE
Deuteranopia (green-blind)
#698DD7
Tritanopia (blue-blind)
#AC819B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b170da;
/* rgb */ color: rgb(177, 112, 218);
/* oklch */ color: oklch(65.7% 0.164 310.9);
Tailwind
colors: {
  custom: {
    50: '#ca9be6',
    500: '#b170da',
    950: '#000000',
  },
}
SCSS
$custom: #b170da;
$custom-light: #ca9be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b170da",
  "rgb": {
    "r": 177,
    "g": 112,
    "b": 218
  },
  "hsl": {
    "h": 276.792,
    "s": 58.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.65668,
    "c": 0.16424,
    "h": 310.9
  },
  "luminance": 0.25997
}

Semantic roles & 50–950 ramp

primary
#B170DA
secondary
#CFE5C1
accent
#C71F60
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B170DA

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

Preview Lab → · Contrast checker → · Palette generator →

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