#9178F9#9178F9

#9178F9 is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.7% C 0.185 H 289.2°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9178F9
RGBrgb(145, 120, 249)
HSLhsl(252, 91%, 72%)
HSVhsv(252, 52%, 98%)
CMYKcmyk(41.8%, 51.8%, 0%, 2.4%)
CIE-LABlab(58.31, 39.73, -61.51)
CIE-LCHlch(58.31, 73.22, 302.86°)
OKLaboklab(65.69% 0.0609 -0.1747)
OKLCHoklch(65.69% 0.185 289.2)
XYZxyz(35.4876, 26.2910, 92.8090)
Luminance0.2629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178F9 #E0F978
analogous
#78A0F9 #9178F9 #D278F9
triadic
#9178F9 #F99178 #78F991
tetradic
#9178F9 #F978A0 #E0F978 #78F9D2
square
#9178F9 #F978A0 #E0F978 #78F9D2
split-complementary
#9178F9 #F9D278 #A0F978
monochromatic
#360AEC #613DF6 #9178F9 #C1B3FC #E7E2FE

Accessibility & contrast

On white

3.36
#9178F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#9178F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178F9
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178F9#FFFFFF#000000##000000
##9178F91.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8FFD
Deuteranopia (green-blind)
#3F89F6
Tritanopia (blue-blind)
#7393AD
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9178f9;
/* rgb */ color: rgb(145, 120, 249);
/* oklch */ color: oklch(65.7% 0.185 289.2);
Tailwind
colors: {
  custom: {
    50: '#b79ffc',
    500: '#9178f9',
    950: '#000000',
  },
}
SCSS
$custom: #9178f9;
$custom-light: #b79ffc;
$custom-dark: #000000;
JSON
{
  "hex": "#9178f9",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 251.628,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65686,
    "c": 0.18502,
    "h": 289.2
  },
  "luminance": 0.26292
}

Semantic roles & 50–950 ramp

primary
#9178F9
secondary
#F0F6D5
accent
#E600B9
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9178F9

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

Preview Lab → · Contrast checker → · Palette generator →

#9178F9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva