#9170F2#9170F2

#9170F2 is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.9% C 0.187 H 291.9°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9170F2
RGBrgb(145, 112, 242)
HSLhsl(255, 83%, 69%)
HSVhsv(255, 54%, 95%)
CMYKcmyk(40.1%, 53.7%, 0%, 5.1%)
CIE-LABlab(56.11, 42.37, -61.17)
CIE-LCHlch(56.11, 74.41, 304.71°)
OKLaboklab(63.91% 0.07 -0.1737)
OKLCHoklch(63.91% 0.187 291.9)
XYZxyz(33.4939, 24.0180, 86.8584)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170F2 #D1F270
analogous
#7090F2 #9170F2 #D270F2
triadic
#9170F2 #F29170 #70F291
tetradic
#9170F2 #F27090 #D1F270 #70F2D2
square
#9170F2 #F27090 #D1F270 #70F2D2
split-complementary
#9170F2 #F2D270 #90F270
monochromatic
#4413D4 #6638ED #9170F2 #BCA8F7 #E7E0FC

Accessibility & contrast

On white

3.62
#9170F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#9170F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170F2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170F2#FFFFFF#000000##000000
##9170F21.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3288F6
Deuteranopia (green-blind)
#3984EF
Tritanopia (blue-blind)
#778BA6
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9170f2;
/* rgb */ color: rgb(145, 112, 242);
/* oklch */ color: oklch(63.9% 0.187 291.9);
Tailwind
colors: {
  custom: {
    50: '#b69af7',
    500: '#9170f2',
    950: '#000000',
  },
}
SCSS
$custom: #9170f2;
$custom-light: #b69af7;
$custom-dark: #000000;
JSON
{
  "hex": "#9170f2",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 255.231,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.63914,
    "c": 0.18731,
    "h": 291.9
  },
  "luminance": 0.24019
}

Semantic roles & 50–950 ramp

primary
#9170F2
secondary
#E8F2CC
accent
#E006A8
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9170F2

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

Preview Lab → · Contrast checker → · Palette generator →

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