#9178E5#9178E5

#9178E5 is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.5% C 0.159 H 291.9°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9178E5
RGBrgb(145, 120, 229)
HSLhsl(254, 68%, 68%)
HSVhsv(254, 48%, 90%)
CMYKcmyk(36.7%, 47.6%, 0%, 10.2%)
CIE-LABlab(57.18, 34.32, -52.20)
CIE-LCHlch(57.18, 62.47, 303.32°)
OKLaboklab(64.48% 0.0592 -0.1474)
OKLCHoklch(64.48% 0.159 291.9)
XYZxyz(32.5326, 25.1090, 77.2460)
Luminance0.2511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178E5 #CCE578
analogous
#7895E5 #9178E5 #C778E5
triadic
#9178E5 #E59178 #78E591
tetradic
#9178E5 #E57895 #CCE578 #78E5C7
square
#9178E5 #E57895 #CCE578 #78E5C7
split-complementary
#9178E5 #E5C778 #95E578
monochromatic
#4825BE #6745DB #9178E5 #BBABEF #E5DFF9

Accessibility & contrast

On white

3.49
#9178E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#9178E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178E5
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178E5#FFFFFF#000000##000000
##9178E51.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#508BE9
Deuteranopia (green-blind)
#5387E2
Tritanopia (blue-blind)
#7C8DA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9178e5;
/* rgb */ color: rgb(145, 120, 229);
/* oklch */ color: oklch(64.5% 0.159 291.9);
Tailwind
colors: {
  custom: {
    50: '#b59fee',
    500: '#9178e5',
    950: '#000000',
  },
}
SCSS
$custom: #9178e5;
$custom-light: #b59fee;
$custom-dark: #000000;
JSON
{
  "hex": "#9178e5",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 229
  },
  "hsl": {
    "h": 253.761,
    "s": 67.702,
    "l": 68.431
  },
  "oklch": {
    "l": 0.64476,
    "c": 0.15889,
    "h": 291.9
  },
  "luminance": 0.2511
}

Semantic roles & 50–950 ramp

primary
#9178E5
secondary
#E5EDCC
accent
#D016A5
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #9178E5

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

Preview Lab → · Contrast checker → · Palette generator →

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