#9170CD#9170CD

#9170CD is a mid, vivid violet. Relative luminance 0.220; OKLCH L 61.7% C 0.140 H 298.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9170CD
RGBrgb(145, 112, 205)
HSLhsl(261, 48%, 62%)
HSVhsv(261, 45%, 80%)
CMYKcmyk(29.3%, 45.4%, 0%, 19.6%)
CIE-LABlab(54.04, 32.70, -43.65)
CIE-LCHlch(54.04, 54.54, 306.84°)
OKLaboklab(61.71% 0.0668 -0.1225)
OKLCHoklch(61.71% 0.14 298.6)
XYZxyz(28.4881, 22.0156, 60.4943)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170CD #ACCD70
analogous
#707ECD #9170CD #C070CD
triadic
#9170CD #CD9170 #70CD91
tetradic
#9170CD #CD707E #ACCD70 #70CDC0
square
#9170CD #CD707E #ACCD70 #70CDC0
split-complementary
#9170CD #CDC070 #7ECD70
monochromatic
#543290 #6E43BD #9170CD #B49DDD #D7CBED

Accessibility & contrast

On white

3.89
#9170CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#9170CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170CD
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170CD#FFFFFF#000000##000000
##9170CD1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5481D0
Deuteranopia (green-blind)
#5B80CB
Tritanopia (blue-blind)
#858195
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9170cd;
/* rgb */ color: rgb(145, 112, 205);
/* oklch */ color: oklch(61.7% 0.140 298.6);
Tailwind
colors: {
  custom: {
    50: '#b399dd',
    500: '#9170cd',
    950: '#000000',
  },
}
SCSS
$custom: #9170cd;
$custom-light: #b399dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9170cd",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 261.29,
    "s": 48.187,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61708,
    "c": 0.1395,
    "h": 298.6
  },
  "luminance": 0.22016
}

Semantic roles & 50–950 ramp

primary
#9170CD
secondary
#D1DDBB
accent
#BB2A88
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9170CD

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

Preview Lab → · Contrast checker → · Palette generator →

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