#9170D2#9170D2

#9170D2 is a mid, vivid violet. Relative luminance 0.223; OKLCH L 62.0% C 0.146 H 297.5°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9170D2
RGBrgb(145, 112, 210)
HSLhsl(260, 52%, 63%)
HSVhsv(260, 47%, 82%)
CMYKcmyk(31%, 46.7%, 0%, 17.6%)
CIE-LABlab(54.30, 33.97, -46.08)
CIE-LCHlch(54.30, 57.25, 306.40°)
OKLaboklab(61.99% 0.0675 -0.1295)
OKLCHoklch(61.99% 0.146 297.5)
XYZxyz(29.1013, 22.2609, 63.7239)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170D2 #B1D270
analogous
#7080D2 #9170D2 #C270D2
triadic
#9170D2 #D29170 #70D291
tetradic
#9170D2 #D27080 #B1D270 #70D2C2
square
#9170D2 #D27080 #B1D270 #70D2C2
split-complementary
#9170D2 #D2C270 #80D270
monochromatic
#533098 #6D41C3 #9170D2 #B59FE1 #D9CDEF

Accessibility & contrast

On white

3.85
#9170D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9170D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170D2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170D2#FFFFFF#000000##000000
##9170D21.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5182D6
Deuteranopia (green-blind)
#5881D0
Tritanopia (blue-blind)
#838297
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9170d2;
/* rgb */ color: rgb(145, 112, 210);
/* oklch */ color: oklch(62.0% 0.146 297.5);
Tailwind
colors: {
  custom: {
    50: '#b499e0',
    500: '#9170d2',
    950: '#000000',
  },
}
SCSS
$custom: #9170d2;
$custom-light: #b499e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9170d2",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 210
  },
  "hsl": {
    "h": 260.204,
    "s": 52.128,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61987,
    "c": 0.14607,
    "h": 297.5
  },
  "luminance": 0.22261
}

Semantic roles & 50–950 ramp

primary
#9170D2
secondary
#D5E0BD
accent
#C0268C
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9170D2

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

Preview Lab → · Contrast checker → · Palette generator →

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