#9170BC#9170BC

#9170BC is a mid, moderate violet. Relative luminance 0.212; OKLCH L 60.8% C 0.117 H 303.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9170BC
RGBrgb(145, 112, 188)
HSLhsl(266, 36%, 59%)
HSVhsv(266, 40%, 74%)
CMYKcmyk(22.9%, 40.4%, 0%, 26.3%)
CIE-LABlab(53.21, 28.51, -35.25)
CIE-LCHlch(53.21, 45.34, 308.97°)
OKLaboklab(60.81% 0.0639 -0.0981)
OKLCHoklch(60.81% 0.117 303.1)
XYZxyz(26.5464, 21.2390, 50.2682)
Luminance0.2124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170BC #9BBC70
analogous
#7075BC #9170BC #B770BC
triadic
#9170BC #BC9170 #70BC91
tetradic
#9170BC #BC7075 #9BBC70 #70BCB7
square
#9170BC #BC7075 #9BBC70 #70BCB7
split-complementary
#9170BC #BCB770 #75BC70
monochromatic
#553979 #724CA3 #9170BC #B19AD0 #D1C3E3

Accessibility & contrast

On white

4.00
#9170BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#9170BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170BC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170BC#FFFFFF#000000##000000
##9170BC1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7EBF
Deuteranopia (green-blind)
#657FBA
Tritanopia (blue-blind)
#8A7C8D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9170bc;
/* rgb */ color: rgb(145, 112, 188);
/* oklch */ color: oklch(60.8% 0.117 303.1);
Tailwind
colors: {
  custom: {
    50: '#b399d0',
    500: '#9170bc',
    950: '#000000',
  },
}
SCSS
$custom: #9170bc;
$custom-light: #b399d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9170bc",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 188
  },
  "hsl": {
    "h": 266.053,
    "s": 36.19,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60808,
    "c": 0.11707,
    "h": 303.1
  },
  "luminance": 0.21239
}

Semantic roles & 50–950 ramp

primary
#9170BC
secondary
#C6D3B5
accent
#CC5C9B
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9170BC

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

Preview Lab → · Contrast checker → · Palette generator →

#9170BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva