#9172EA#9172EA

#9172EA is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.7% C 0.174 H 292.7°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9172EA
RGBrgb(145, 114, 234)
HSLhsl(256, 74%, 68%)
HSVhsv(256, 51%, 92%)
CMYKcmyk(38%, 51.3%, 0%, 8.2%)
CIE-LABlab(56.08, 39.09, -56.75)
CIE-LCHlch(56.08, 68.91, 304.56°)
OKLaboklab(63.74% 0.0672 -0.1608)
OKLCHoklch(63.74% 0.174 292.7)
XYZxyz(32.5417, 23.9941, 80.7427)
Luminance0.2399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9172EA #CBEA72
analogous
#728FEA #9172EA #CD72EA
triadic
#9172EA #EA9172 #72EA91
tetradic
#9172EA #EA728F #CBEA72 #72EACD
square
#9172EA #EA728F #CBEA72 #72EACD
split-complementary
#9172EA #EACD72 #8FEA72
monochromatic
#481DC4 #673DE2 #9172EA #BBA7F2 #E4DDFA

Accessibility & contrast

On white

3.62
#9172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#9172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9172EA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9172EA#FFFFFF#000000##000000
##9172EA1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4088EE
Deuteranopia (green-blind)
#4684E7
Tritanopia (blue-blind)
#7A8AA3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9172ea;
/* rgb */ color: rgb(145, 114, 234);
/* oklch */ color: oklch(63.7% 0.174 292.7);
Tailwind
colors: {
  custom: {
    50: '#b59bf1',
    500: '#9172ea',
    950: '#000000',
  },
}
SCSS
$custom: #9172ea;
$custom-light: #b59bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9172ea",
  "rgb": {
    "r": 145,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 255.5,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63744,
    "c": 0.17425,
    "h": 292.7
  },
  "luminance": 0.23995
}

Semantic roles & 50–950 ramp

primary
#9172EA
secondary
#E5EECA
accent
#D60FA3
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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