#9173F2#9173F2

#9173F2 is a light, vivid violet. Relative luminance 0.247; OKLCH L 64.4% C 0.183 H 291.3°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9173F2
RGBrgb(145, 115, 242)
HSLhsl(254, 83%, 70%)
HSVhsv(254, 52%, 95%)
CMYKcmyk(40.1%, 52.5%, 0%, 5.1%)
CIE-LABlab(56.77, 40.67, -60.10)
CIE-LCHlch(56.77, 72.56, 304.09°)
OKLaboklab(64.41% 0.0664 -0.1706)
OKLCHoklch(64.41% 0.183 291.3)
XYZxyz(33.8304, 24.6910, 86.9706)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9173F2 #D4F273
analogous
#7395F2 #9173F2 #D073F2
triadic
#9173F2 #F29173 #73F291
tetradic
#9173F2 #F27395 #D4F273 #73F2D0
square
#9173F2 #F27395 #D4F273 #73F2D0
split-complementary
#9173F2 #F2D073 #95F273
monochromatic
#4214D7 #653BED #9173F2 #BDABF7 #E9E3FC

Accessibility & contrast

On white

3.54
#9173F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#9173F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9173F2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9173F2#FFFFFF#000000##000000
##9173F21.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8AF6
Deuteranopia (green-blind)
#3F86EF
Tritanopia (blue-blind)
#778EA8
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9173f2;
/* rgb */ color: rgb(145, 115, 242);
/* oklch */ color: oklch(64.4% 0.183 291.3);
Tailwind
colors: {
  custom: {
    50: '#b69cf7',
    500: '#9173f2',
    950: '#000000',
  },
}
SCSS
$custom: #9173f2;
$custom-light: #b69cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9173f2",
  "rgb": {
    "r": 145,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 254.173,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.64409,
    "c": 0.18307,
    "h": 291.3
  },
  "luminance": 0.24692
}

Semantic roles & 50–950 ramp

primary
#9173F2
secondary
#EAF2CF
accent
#DF06AC
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9173F2

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

Preview Lab → · Contrast checker → · Palette generator →

#9173F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva