#9178E4#9178E4

#9178E4 is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.4% C 0.158 H 292.0°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9178E4
RGBrgb(145, 120, 228)
HSLhsl(254, 67%, 68%)
HSVhsv(254, 47%, 89%)
CMYKcmyk(36.4%, 47.4%, 0%, 10.6%)
CIE-LABlab(57.13, 34.05, -51.73)
CIE-LCHlch(57.13, 61.93, 303.36°)
OKLaboklab(64.42% 0.0591 -0.1461)
OKLCHoklch(64.42% 0.158 292)
XYZxyz(32.3934, 25.0533, 76.5128)
Luminance0.2505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178E4 #CBE478
analogous
#7895E4 #9178E4 #C778E4
triadic
#9178E4 #E49178 #78E491
tetradic
#9178E4 #E47895 #CBE478 #78E4C7
square
#9178E4 #E47895 #CBE478 #78E4C7
split-complementary
#9178E4 #E4C778 #95E478
monochromatic
#4826BC #6745DA #9178E4 #BBABEE #E4DEF8

Accessibility & contrast

On white

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

On black

6.01
#9178E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178E4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178E4#FFFFFF#000000##000000
##9178E41.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#518BE8
Deuteranopia (green-blind)
#5487E1
Tritanopia (blue-blind)
#7C8DA3
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9178e4;
/* rgb */ color: rgb(145, 120, 228);
/* oklch */ color: oklch(64.4% 0.158 292.0);
Tailwind
colors: {
  custom: {
    50: '#b59fed',
    500: '#9178e4',
    950: '#000000',
  },
}
SCSS
$custom: #9178e4;
$custom-light: #b59fed;
$custom-dark: #000000;
JSON
{
  "hex": "#9178e4",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 228
  },
  "hsl": {
    "h": 253.889,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64418,
    "c": 0.15756,
    "h": 292
  },
  "luminance": 0.25054
}

Semantic roles & 50–950 ramp

primary
#9178E4
secondary
#E5ECCC
accent
#CF17A4
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #9178E4

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

Preview Lab → · Contrast checker → · Palette generator →

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