#9171FC#9171FC

#9171FC is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.7% C 0.199 H 290.4°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9171FC
RGBrgb(145, 113, 252)
HSLhsl(254, 96%, 72%)
HSVhsv(254, 55%, 99%)
CMYKcmyk(42.5%, 55.2%, 0%, 1.2%)
CIE-LABlab(56.94, 44.51, -65.37)
CIE-LCHlch(56.94, 79.09, 304.25°)
OKLaboklab(64.72% 0.0691 -0.1861)
OKLCHoklch(64.72% 0.199 290.4)
XYZxyz(35.1480, 24.8571, 95.0226)
Luminance0.2486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9171FC #DCFC71
analogous
#7197FC #9171FC #D771FC
triadic
#9171FC #FC9171 #71FC91
tetradic
#9171FC #FC7197 #DCFC71 #71FCD7
square
#9171FC #FC7197 #DCFC71 #71FCD7
split-complementary
#9171FC #FCD771 #97FC71
monochromatic
#3B05EE #6335FB #9171FC #BFADFD #E8E1FE

Accessibility & contrast

On white

3.52
#9171FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#9171FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9171FC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9171FC#FFFFFF#000000##000000
##9171FC1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#248BFF
Deuteranopia (green-blind)
#2B86F9
Tritanopia (blue-blind)
#728FAC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9171fc;
/* rgb */ color: rgb(145, 113, 252);
/* oklch */ color: oklch(64.7% 0.199 290.4);
Tailwind
colors: {
  custom: {
    50: '#b79bfe',
    500: '#9171fc',
    950: '#000000',
  },
}
SCSS
$custom: #9171fc;
$custom-light: #b79bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#9171fc",
  "rgb": {
    "r": 145,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 253.813,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64723,
    "c": 0.19851,
    "h": 290.4
  },
  "luminance": 0.24858
}

Semantic roles & 50–950 ramp

primary
#9171FC
secondary
#EEF6D3
accent
#E600B1
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9171FC

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

Preview Lab → · Contrast checker → · Palette generator →

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