#9172FC#9172FC

#9172FC is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.9% C 0.197 H 290.1°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9172FC
RGBrgb(145, 114, 252)
HSLhsl(253, 96%, 72%)
HSVhsv(253, 55%, 99%)
CMYKcmyk(42.5%, 54.8%, 0%, 1.2%)
CIE-LABlab(57.15, 43.95, -65.02)
CIE-LCHlch(57.15, 78.48, 304.05°)
OKLaboklab(64.89% 0.0679 -0.1851)
OKLCHoklch(64.89% 0.197 290.1)
XYZxyz(35.2602, 25.0815, 95.0600)
Luminance0.2508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9172FC #DDFC72
analogous
#7298FC #9172FC #D672FC
triadic
#9172FC #FC9172 #72FC91
tetradic
#9172FC #FC7298 #DDFC72 #72FCD6
square
#9172FC #FC7298 #DDFC72 #72FCD6
split-complementary
#9172FC #FCD672 #98FC72
monochromatic
#3A05EF #6236FB #9172FC #C0AEFD #E8E1FE

Accessibility & contrast

On white

3.49
#9172FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#9172FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9172FC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9172FC#FFFFFF#000000##000000
##9172FC1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#288CFF
Deuteranopia (green-blind)
#2E86F9
Tritanopia (blue-blind)
#7290AC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9172fc;
/* rgb */ color: rgb(145, 114, 252);
/* oklch */ color: oklch(64.9% 0.197 290.1);
Tailwind
colors: {
  custom: {
    50: '#b79bfe',
    500: '#9172fc',
    950: '#000000',
  },
}
SCSS
$custom: #9172fc;
$custom-light: #b79bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#9172fc",
  "rgb": {
    "r": 145,
    "g": 114,
    "b": 252
  },
  "hsl": {
    "h": 253.478,
    "s": 95.833,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64885,
    "c": 0.19715,
    "h": 290.1
  },
  "luminance": 0.25083
}

Semantic roles & 50–950 ramp

primary
#9172FC
secondary
#EFF6D3
accent
#E600B2
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9172FC

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

Preview Lab → · Contrast checker → · Palette generator →

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