#9171FB#9171FB

#9171FB is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.7% C 0.197 H 290.5°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9171FB
RGBrgb(145, 113, 251)
HSLhsl(254, 95%, 71%)
HSVhsv(254, 55%, 98%)
CMYKcmyk(42.2%, 55%, 0%, 1.6%)
CIE-LABlab(56.87, 44.24, -64.92)
CIE-LCHlch(56.87, 78.56, 304.27°)
OKLaboklab(64.66% 0.069 -0.1848)
OKLCHoklch(64.66% 0.197 290.5)
XYZxyz(34.9899, 24.7939, 94.1902)
Luminance0.2480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9171FB #DBFB71
analogous
#7196FB #9171FB #D671FB
triadic
#9171FB #FB9171 #71FB91
tetradic
#9171FB #FB7196 #DBFB71 #71FBD6
square
#9171FB #FB7196 #DBFB71 #71FBD6
split-complementary
#9171FB #FBD671 #96FB71
monochromatic
#3C07EB #6335F9 #9171FB #BFADFD #E8E1FE

Accessibility & contrast

On white

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

On black

5.96
#9171FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9171FB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9171FB#FFFFFF#000000##000000
##9171FB1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#268BFF
Deuteranopia (green-blind)
#2D85F8
Tritanopia (blue-blind)
#738FAB
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9171fb;
/* rgb */ color: rgb(145, 113, 251);
/* oklch */ color: oklch(64.7% 0.197 290.5);
Tailwind
colors: {
  custom: {
    50: '#b79bfd',
    500: '#9171fb',
    950: '#000000',
  },
}
SCSS
$custom: #9171fb;
$custom-light: #b79bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9171fb",
  "rgb": {
    "r": 145,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 253.913,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64658,
    "c": 0.19725,
    "h": 290.5
  },
  "luminance": 0.24795
}

Semantic roles & 50–950 ramp

primary
#9171FB
secondary
#EEF6D2
accent
#E600B0
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9171FB

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

Preview Lab → · Contrast checker → · Palette generator →

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