#9170AA#9170AA

#9170AA is a mid, moderate violet. Relative luminance 0.205; OKLCH L 59.9% C 0.093 H 309.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9170AA
RGBrgb(145, 112, 170)
HSLhsl(274, 25%, 55%)
HSVhsv(274, 34%, 67%)
CMYKcmyk(14.7%, 34.1%, 0%, 33.3%)
CIE-LABlab(52.41, 24.31, -26.10)
CIE-LCHlch(52.41, 35.67, 312.97°)
OKLaboklab(59.94% 0.0598 -0.0718)
OKLCHoklch(59.94% 0.093 309.8)
XYZxyz(24.7256, 20.5106, 40.6788)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170AA #89AA70
analogous
#7470AA #9170AA #AA70A6
triadic
#9170AA #AA9170 #70AA91
tetradic
#9170AA #AA7470 #89AA70 #70A6AA
square
#9170AA #AA7470 #89AA70 #70A6AA
split-complementary
#9170AA #A6AA70 #70AA74
monochromatic
#533B64 #72528A #9170AA #AF96C1 #CCBDD8

Accessibility & contrast

On white

4.12
#9170AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9170AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9170AA#FFFFFF#000000##000000
##9170AA1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#657BAC
Deuteranopia (green-blind)
#6D7EA8
Tritanopia (blue-blind)
#8E7885
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9170aa;
/* rgb */ color: rgb(145, 112, 170);
/* oklch */ color: oklch(59.9% 0.093 309.8);
Tailwind
colors: {
  custom: {
    50: '#b299c3',
    500: '#9170aa',
    950: '#000000',
  },
}
SCSS
$custom: #9170aa;
$custom-light: #b299c3;
$custom-dark: #000000;
JSON
{
  "hex": "#9170aa",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 170
  },
  "hsl": {
    "h": 274.138,
    "s": 25.439,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59937,
    "c": 0.09346,
    "h": 309.8
  },
  "luminance": 0.2051
}

Semantic roles & 50–950 ramp

primary
#9170AA
secondary
#B9C7AF
accent
#C2668E
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110E12
muted
#807E81

Preview Lab

Preview with #9170AA

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

Preview Lab → · Contrast checker → · Palette generator →

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