#9172FA#9172FA

#9172FA is a light, vivid violet. Relative luminance 0.250; OKLCH L 64.8% C 0.195 H 290.4°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9172FA
RGBrgb(145, 114, 250)
HSLhsl(254, 93%, 71%)
HSVhsv(254, 54%, 98%)
CMYKcmyk(42%, 54.4%, 0%, 2%)
CIE-LABlab(57.03, 43.40, -64.11)
CIE-LCHlch(57.03, 77.42, 304.10°)
OKLaboklab(64.76% 0.0679 -0.1824)
OKLCHoklch(64.76% 0.195 290.4)
XYZxyz(34.9449, 24.9554, 93.3996)
Luminance0.2496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9172FA #DBFA72
analogous
#7297FA #9172FA #D572FA
triadic
#9172FA #FA9172 #72FA91
tetradic
#9172FA #FA7297 #DBFA72 #72FAD5
square
#9172FA #FA7297 #DBFA72 #72FAD5
split-complementary
#9172FA #FAD572 #97FA72
monochromatic
#3C08E9 #6337F8 #9172FA #BFADFC #E8E1FE

Accessibility & contrast

On white

3.51
#9172FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#9172FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9172FA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9172FA#FFFFFF#000000##000000
##9172FA1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8BFF
Deuteranopia (green-blind)
#3186F7
Tritanopia (blue-blind)
#738FAB
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9172fa;
/* rgb */ color: rgb(145, 114, 250);
/* oklch */ color: oklch(64.8% 0.195 290.4);
Tailwind
colors: {
  custom: {
    50: '#b79bfd',
    500: '#9172fa',
    950: '#000000',
  },
}
SCSS
$custom: #9172fa;
$custom-light: #b79bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9172fa",
  "rgb": {
    "r": 145,
    "g": 114,
    "b": 250
  },
  "hsl": {
    "h": 253.676,
    "s": 93.151,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64755,
    "c": 0.19463,
    "h": 290.4
  },
  "luminance": 0.24956
}

Semantic roles & 50–950 ramp

primary
#9172FA
secondary
#EEF6D2
accent
#E600B1
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9172FA

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

Preview Lab → · Contrast checker → · Palette generator →

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