#9170F8#9170F8

#9170F8 is a light, vivid violet. Relative luminance 0.244; OKLCH L 64.3% C 0.195 H 291.1°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9170F8
RGBrgb(145, 112, 248)
HSLhsl(255, 91%, 71%)
HSVhsv(255, 55%, 97%)
CMYKcmyk(41.5%, 54.8%, 0%, 2.7%)
CIE-LABlab(56.47, 43.98, -63.91)
CIE-LCHlch(56.47, 77.58, 304.54°)
OKLaboklab(64.3% 0.0701 -0.1818)
OKLCHoklch(64.3% 0.195 291.1)
XYZxyz(34.4098, 24.3843, 91.6824)
Luminance0.2439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170F8 #D7F870
analogous
#7093F8 #9170F8 #D570F8
triadic
#9170F8 #F89170 #70F891
tetradic
#9170F8 #F87093 #D7F870 #70F8D5
square
#9170F8 #F87093 #D7F870 #70F8D5
split-complementary
#9170F8 #F8D570 #93F870
monochromatic
#3F0BE3 #6436F5 #9170F8 #BEAAFB #E9E2FE

Accessibility & contrast

On white

3.57
#9170F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#9170F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170F8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170F8#FFFFFF#000000##000000
##9170F81.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#288AFD
Deuteranopia (green-blind)
#3085F5
Tritanopia (blue-blind)
#748DA9
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9170f8;
/* rgb */ color: rgb(145, 112, 248);
/* oklch */ color: oklch(64.3% 0.195 291.1);
Tailwind
colors: {
  custom: {
    50: '#b79afb',
    500: '#9170f8',
    950: '#000000',
  },
}
SCSS
$custom: #9170f8;
$custom-light: #b79afb;
$custom-dark: #000000;
JSON
{
  "hex": "#9170f8",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 254.559,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.643,
    "c": 0.19487,
    "h": 291.1
  },
  "luminance": 0.24385
}

Semantic roles & 50–950 ramp

primary
#9170F8
secondary
#EBF4CF
accent
#E600AE
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9170F8

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

Preview Lab → · Contrast checker → · Palette generator →

#9170F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva