#9178D9#9178D9

#9178D9 is a light, vivid violet. Relative luminance 0.245; OKLCH L 63.8% C 0.143 H 293.8°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9178D9
RGBrgb(145, 120, 217)
HSLhsl(255, 56%, 66%)
HSVhsv(255, 45%, 85%)
CMYKcmyk(33.2%, 44.7%, 0%, 14.9%)
CIE-LABlab(56.55, 31.15, -46.48)
CIE-LCHlch(56.55, 55.95, 303.83°)
OKLaboklab(63.79% 0.0577 -0.1307)
OKLCHoklch(63.79% 0.143 293.8)
XYZxyz(30.9147, 24.4619, 68.7250)
Luminance0.2446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178D9 #C0D978
analogous
#788FD9 #9178D9 #C178D9
triadic
#9178D9 #D99178 #78D991
tetradic
#9178D9 #D9788F #C0D978 #78D9C1
square
#9178D9 #D9788F #C0D978 #78D9C1
split-complementary
#9178D9 #D9C178 #8FD978
monochromatic
#4E2FA7 #6A48CC #9178D9 #B8A8E6 #DFD8F4

Accessibility & contrast

On white

3.56
#9178D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#9178D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178D9
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178D9#FFFFFF#000000##000000
##9178D91.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5889DD
Deuteranopia (green-blind)
#5C86D7
Tritanopia (blue-blind)
#808A9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9178d9;
/* rgb */ color: rgb(145, 120, 217);
/* oklch */ color: oklch(63.8% 0.143 293.8);
Tailwind
colors: {
  custom: {
    50: '#b49fe5',
    500: '#9178d9',
    950: '#000000',
  },
}
SCSS
$custom: #9178d9;
$custom-light: #b49fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#9178d9",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 217
  },
  "hsl": {
    "h": 255.464,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63793,
    "c": 0.14289,
    "h": 293.8
  },
  "luminance": 0.24462
}

Semantic roles & 50–950 ramp

primary
#9178D9
secondary
#DEE6C6
accent
#C4229A
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #9178D9

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

Preview Lab → · Contrast checker → · Palette generator →

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