#9B71BB#9B71BB

#9B71BB is a mid, moderate violet. Relative luminance 0.224; OKLCH L 61.9% C 0.117 H 309.4°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9B71BB
RGBrgb(155, 113, 187)
HSLhsl(274, 35%, 59%)
HSVhsv(274, 40%, 73%)
CMYKcmyk(17.1%, 39.6%, 0%, 26.7%)
CIE-LABlab(54.41, 30.72, -32.72)
CIE-LCHlch(54.41, 44.88, 313.20°)
OKLaboklab(61.94% 0.0744 -0.0906)
OKLCHoklch(61.94% 0.117 309.4)
XYZxyz(28.3907, 22.3670, 49.8257)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B71BB #91BB71
analogous
#7671BB #9B71BB #BB71B6
triadic
#9B71BB #BB9B71 #71BB9B
tetradic
#9B71BB #BB7671 #91BB71 #71B6BB
square
#9B71BB #BB7671 #91BB71 #71B6BB
split-complementary
#9B71BB #B6BB71 #71BB76
monochromatic
#5D3A78 #7D4DA1 #9B71BB #B89ACF #D5C4E3

Accessibility & contrast

On white

3.84
#9B71BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#9B71BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B71BB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B71BB#FFFFFF#000000##000000
##9B71BB1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6280BE
Deuteranopia (green-blind)
#6C83B9
Tritanopia (blue-blind)
#977C8D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9b71bb;
/* rgb */ color: rgb(155, 113, 187);
/* oklch */ color: oklch(61.9% 0.117 309.4);
Tailwind
colors: {
  custom: {
    50: '#ba9acf',
    500: '#9b71bb',
    950: '#000000',
  },
}
SCSS
$custom: #9b71bb;
$custom-light: #ba9acf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b71bb",
  "rgb": {
    "r": 155,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 274.054,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61938,
    "c": 0.11723,
    "h": 309.4
  },
  "luminance": 0.22367
}

Semantic roles & 50–950 ramp

primary
#9B71BB
secondary
#C2D2B5
accent
#CB5D8C
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #9B71BB

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

Preview Lab → · Contrast checker → · Palette generator →

#9B71BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva