#9170CF#9170CF

#9170CF is a mid, vivid violet. Relative luminance 0.221; OKLCH L 61.8% C 0.142 H 298.2°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9170CF
RGBrgb(145, 112, 207)
HSLhsl(261, 50%, 63%)
HSVhsv(261, 46%, 81%)
CMYKcmyk(30%, 45.9%, 0%, 18.8%)
CIE-LABlab(54.15, 33.21, -44.63)
CIE-LCHlch(54.15, 55.63, 306.65°)
OKLaboklab(61.82% 0.0671 -0.1253)
OKLCHoklch(61.82% 0.142 298.2)
XYZxyz(28.7310, 22.1128, 61.7739)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170CF #AECF70
analogous
#707FCF #9170CF #C070CF
triadic
#9170CF #CF9170 #70CF91
tetradic
#9170CF #CF707F #AECF70 #70CFC0
square
#9170CF #CF707F #AECF70 #70CFC0
split-complementary
#9170CF #CFC070 #7FCF70
monochromatic
#533193 #6E42C0 #9170CF #B49EDE #D7CCEE

Accessibility & contrast

On white

3.87
#9170CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#9170CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170CF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170CF#FFFFFF#000000##000000
##9170CF1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5382D2
Deuteranopia (green-blind)
#5A81CD
Tritanopia (blue-blind)
#848196
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9170cf;
/* rgb */ color: rgb(145, 112, 207);
/* oklch */ color: oklch(61.8% 0.142 298.2);
Tailwind
colors: {
  custom: {
    50: '#b499de',
    500: '#9170cf',
    950: '#000000',
  },
}
SCSS
$custom: #9170cf;
$custom-light: #b499de;
$custom-dark: #000000;
JSON
{
  "hex": "#9170cf",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 207
  },
  "hsl": {
    "h": 260.842,
    "s": 49.738,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61819,
    "c": 0.14213,
    "h": 298.2
  },
  "luminance": 0.22113
}

Semantic roles & 50–950 ramp

primary
#9170CF
secondary
#D3DFBC
accent
#BD2889
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9170CF

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

Preview Lab → · Contrast checker → · Palette generator →

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