#9178EB#9178EB

#9178EB is a light, vivid violet. Relative luminance 0.255; OKLCH L 64.8% C 0.167 H 291.0°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9178EB
RGBrgb(145, 120, 235)
HSLhsl(253, 74%, 70%)
HSVhsv(253, 49%, 92%)
CMYKcmyk(38.3%, 48.9%, 0%, 7.8%)
CIE-LABlab(57.51, 35.92, -55.02)
CIE-LCHlch(57.51, 65.71, 303.14°)
OKLaboklab(64.83% 0.0598 -0.1557)
OKLCHoklch(64.83% 0.167 291)
XYZxyz(33.3849, 25.4499, 81.7345)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178EB #D2EB78
analogous
#7899EB #9178EB #CA78EB
triadic
#9178EB #EB9178 #78EB91
tetradic
#9178EB #EB7899 #D2EB78 #78EBCA
square
#9178EB #EB7899 #D2EB78 #78EBCA
split-complementary
#9178EB #EBCA78 #99EB78
monochromatic
#441ECB #6643E3 #9178EB #BCADF3 #E8E3FB

Accessibility & contrast

On white

3.45
#9178EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9178EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178EB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178EB#FFFFFF#000000##000000
##9178EB1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8CEF
Deuteranopia (green-blind)
#4E88E8
Tritanopia (blue-blind)
#798FA6
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9178eb;
/* rgb */ color: rgb(145, 120, 235);
/* oklch */ color: oklch(64.8% 0.167 291.0);
Tailwind
colors: {
  custom: {
    50: '#b59ff2',
    500: '#9178eb',
    950: '#000000',
  },
}
SCSS
$custom: #9178eb;
$custom-light: #b59ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9178eb",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 253.043,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.6483,
    "c": 0.1668,
    "h": 291
  },
  "luminance": 0.25451
}

Semantic roles & 50–950 ramp

primary
#9178EB
secondary
#E9F0CF
accent
#D60FAB
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9178EB

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

Preview Lab → · Contrast checker → · Palette generator →

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