#9172EF#9172EF

#9172EF is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.1% C 0.181 H 291.9°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9172EF
RGBrgb(145, 114, 239)
HSLhsl(255, 80%, 69%)
HSVhsv(255, 52%, 94%)
CMYKcmyk(39.3%, 52.3%, 0%, 6.3%)
CIE-LABlab(56.37, 40.43, -59.07)
CIE-LCHlch(56.37, 71.58, 304.39°)
OKLaboklab(64.05% 0.0675 -0.1676)
OKLCHoklch(64.05% 0.181 291.9)
XYZxyz(33.2702, 24.2855, 84.5793)
Luminance0.2429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9172EF #D0EF72
analogous
#7292EF #9172EF #D072EF
triadic
#9172EF #EF9172 #72EF91
tetradic
#9172EF #EF7292 #D0EF72 #72EFD0
square
#9172EF #EF7292 #D0EF72 #72EFD0
split-complementary
#9172EF #EFD072 #92EF72
monochromatic
#4518CF #663BE9 #9172EF #BCA9F5 #E7E0FB

Accessibility & contrast

On white

3.59
#9172EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#9172EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9172EF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9172EF#FFFFFF#000000##000000
##9172EF1.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B89F3
Deuteranopia (green-blind)
#4085EC
Tritanopia (blue-blind)
#788CA6
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9172ef;
/* rgb */ color: rgb(145, 114, 239);
/* oklch */ color: oklch(64.1% 0.181 291.9);
Tailwind
colors: {
  custom: {
    50: '#b69bf5',
    500: '#9172ef',
    950: '#000000',
  },
}
SCSS
$custom: #9172ef;
$custom-light: #b69bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9172ef",
  "rgb": {
    "r": 145,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 254.88,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.64054,
    "c": 0.18066,
    "h": 291.9
  },
  "luminance": 0.24286
}

Semantic roles & 50–950 ramp

primary
#9172EF
secondary
#E8F1CC
accent
#DC0AA8
background
#FBF9FF
surface
#F6F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9172EF

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

Preview Lab → · Contrast checker → · Palette generator →

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