#9170EA#9170EA

#9170EA is a light, vivid violet. Relative luminance 0.235; OKLCH L 63.4% C 0.177 H 293.1°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9170EA
RGBrgb(145, 112, 234)
HSLhsl(256, 74%, 68%)
HSVhsv(256, 52%, 92%)
CMYKcmyk(38%, 52.1%, 0%, 8.2%)
CIE-LABlab(55.63, 40.23, -57.47)
CIE-LCHlch(55.63, 70.15, 304.99°)
OKLaboklab(63.41% 0.0696 -0.1629)
OKLCHoklch(63.41% 0.177 293.1)
XYZxyz(32.3186, 23.5478, 80.6684)
Luminance0.2355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170EA #C9EA70
analogous
#708CEA #9170EA #CE70EA
triadic
#9170EA #EA9170 #70EA91
tetradic
#9170EA #EA708C #C9EA70 #70EACE
square
#9170EA #EA708C #C9EA70 #70EACE
split-complementary
#9170EA #EACE70 #8CEA70
monochromatic
#4A1DC3 #683BE2 #9170EA #BAA5F2 #E3DBFA

Accessibility & contrast

On white

3.68
#9170EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#9170EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170EA
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170EA#FFFFFF#000000##000000
##9170EA1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C87EE
Deuteranopia (green-blind)
#4383E7
Tritanopia (blue-blind)
#7A89A2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9170ea;
/* rgb */ color: rgb(145, 112, 234);
/* oklch */ color: oklch(63.4% 0.177 293.1);
Tailwind
colors: {
  custom: {
    50: '#b69af1',
    500: '#9170ea',
    950: '#000000',
  },
}
SCSS
$custom: #9170ea;
$custom-light: #b69af1;
$custom-dark: #000000;
JSON
{
  "hex": "#9170ea",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 256.23,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6341,
    "c": 0.17714,
    "h": 293.1
  },
  "luminance": 0.23549
}

Semantic roles & 50–950 ramp

primary
#9170EA
secondary
#E4EEC8
accent
#D70FA1
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9170EA

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

Preview Lab → · Contrast checker → · Palette generator →

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