#B171DA#B171DA

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

Color values

HEX#B171DA
RGBrgb(177, 113, 218)
HSLhsl(277, 59%, 65%)
HSVhsv(277, 48%, 85%)
CMYKcmyk(18.8%, 48.2%, 0%, 14.5%)
CIE-LABlab(58.25, 44.03, -44.15)
CIE-LCHlch(58.25, 62.35, 314.93°)
OKLaboklab(65.82% 0.1062 -0.1231)
OKLCHoklch(65.82% 0.163 310.8)
XYZxyz(36.6892, 26.2200, 69.4443)
Luminance0.2622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B171DA #9ADA71
analogous
#7C71DA #B171DA #DA71CF
triadic
#B171DA #DAB171 #71DAB1
tetradic
#B171DA #DA7C71 #9ADA71 #71CFDA
square
#B171DA #DA7C71 #9ADA71 #71CFDA
split-complementary
#B171DA #CFDA71 #71DA7C
monochromatic
#762BA5 #9640CD #B171DA #CCA2E7 #E6D2F3

Accessibility & contrast

On white

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

On black

6.24
#B171DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B171DA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B171DA#FFFFFF#000000##000000
##B171DA1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5889DE
Deuteranopia (green-blind)
#6A8DD7
Tritanopia (blue-blind)
#AC829B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b171da;
/* rgb */ color: rgb(177, 113, 218);
/* oklch */ color: oklch(65.8% 0.163 310.8);
Tailwind
colors: {
  custom: {
    50: '#ca9be6',
    500: '#b171da',
    950: '#000000',
  },
}
SCSS
$custom: #b171da;
$custom-light: #ca9be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b171da",
  "rgb": {
    "r": 177,
    "g": 113,
    "b": 218
  },
  "hsl": {
    "h": 276.571,
    "s": 58.659,
    "l": 64.902
  },
  "oklch": {
    "l": 0.65824,
    "c": 0.16262,
    "h": 310.8
  },
  "luminance": 0.26219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B171DA

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

Preview Lab → · Contrast checker → · Palette generator →

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