#9170E2#9170E2

#9170E2 is a light, vivid violet. Relative luminance 0.231; OKLCH L 62.9% C 0.167 H 294.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9170E2
RGBrgb(145, 112, 226)
HSLhsl(257, 66%, 66%)
HSVhsv(257, 50%, 89%)
CMYKcmyk(35.8%, 50.4%, 0%, 11.4%)
CIE-LABlab(55.17, 38.11, -53.72)
CIE-LCHlch(55.17, 65.87, 305.35°)
OKLaboklab(62.92% 0.0691 -0.1519)
OKLCHoklch(62.92% 0.167 294.5)
XYZxyz(31.1951, 23.0985, 74.7517)
Luminance0.2310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170E2 #C1E270
analogous
#7088E2 #9170E2 #CA70E2
triadic
#9170E2 #E29170 #70E291
tetradic
#9170E2 #E27088 #C1E270 #70E2CA
square
#9170E2 #E27088 #C1E270 #70E2CA
split-complementary
#9170E2 #E2CA70 #88E270
monochromatic
#4E24B3 #6A3DD8 #9170E2 #B8A3EC #DFD6F7

Accessibility & contrast

On white

3.74
#9170E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#9170E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170E2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170E2#FFFFFF#000000##000000
##9170E21.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4485E6
Deuteranopia (green-blind)
#4B82DF
Tritanopia (blue-blind)
#7E879F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9170e2;
/* rgb */ color: rgb(145, 112, 226);
/* oklch */ color: oklch(62.9% 0.167 294.5);
Tailwind
colors: {
  custom: {
    50: '#b59aec',
    500: '#9170e2',
    950: '#000000',
  },
}
SCSS
$custom: #9170e2;
$custom-light: #b59aec;
$custom-dark: #000000;
JSON
{
  "hex": "#9170e2",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 257.368,
    "s": 66.279,
    "l": 66.275
  },
  "oklch": {
    "l": 0.62921,
    "c": 0.16687,
    "h": 294.5
  },
  "luminance": 0.23099
}

Semantic roles & 50–950 ramp

primary
#9170E2
secondary
#DFEAC4
accent
#CE1799
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #9170E2

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

Preview Lab → · Contrast checker → · Palette generator →

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