#9170DB#9170DB

#9170DB is a light, vivid violet. Relative luminance 0.227; OKLCH L 62.5% C 0.158 H 295.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9170DB
RGBrgb(145, 112, 219)
HSLhsl(259, 60%, 65%)
HSVhsv(259, 49%, 86%)
CMYKcmyk(33.8%, 48.9%, 0%, 14.1%)
CIE-LABlab(54.78, 36.28, -50.40)
CIE-LCHlch(54.78, 62.10, 305.75°)
OKLaboklab(62.51% 0.0685 -0.1422)
OKLCHoklch(62.51% 0.158 295.7)
XYZxyz(30.2542, 22.7221, 69.7959)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170DB #BADB70
analogous
#7084DB #9170DB #C770DB
triadic
#9170DB #DB9170 #70DB91
tetradic
#9170DB #DB7084 #BADB70 #70DBC7
square
#9170DB #DB7084 #BADB70 #70DBC7
split-complementary
#9170DB #DBC770 #84DB70
monochromatic
#502AA7 #6B3FCF #9170DB #B7A1E7 #DCD2F4

Accessibility & contrast

On white

3.79
#9170DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#9170DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170DB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170DB#FFFFFF#000000##000000
##9170DB1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A84DF
Deuteranopia (green-blind)
#5182D8
Tritanopia (blue-blind)
#80859B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9170db;
/* rgb */ color: rgb(145, 112, 219);
/* oklch */ color: oklch(62.5% 0.158 295.7);
Tailwind
colors: {
  custom: {
    50: '#b49ae7',
    500: '#9170db',
    950: '#000000',
  },
}
SCSS
$custom: #9170db;
$custom-light: #b49ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9170db",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 258.505,
    "s": 59.777,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62505,
    "c": 0.15782,
    "h": 295.7
  },
  "luminance": 0.22723
}

Semantic roles & 50–950 ramp

primary
#9170DB
secondary
#DAE6C1
accent
#C71E93
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #9170DB

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

Preview Lab → · Contrast checker → · Palette generator →

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