#9178CF#9178CF

#9178CF is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.2% C 0.129 H 295.7°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#9178CF
RGBrgb(145, 120, 207)
HSLhsl(257, 48%, 64%)
HSVhsv(257, 42%, 81%)
CMYKcmyk(30%, 42%, 0%, 18.8%)
CIE-LABlab(56.05, 28.58, -41.63)
CIE-LCHlch(56.05, 50.49, 304.47°)
OKLaboklab(63.25% 0.0561 -0.1166)
OKLCHoklch(63.25% 0.129 295.7)
XYZxyz(29.6533, 23.9573, 62.0813)
Luminance0.2396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178CF #B6CF78
analogous
#788BCF #9178CF #BD78CF
triadic
#9178CF #CF9178 #78CF91
tetradic
#9178CF #CF788B #B6CF78 #78CFBD
square
#9178CF #CF788B #B6CF78 #78CFBD
split-complementary
#9178CF #CFBD78 #8BCF78
monochromatic
#523697 #6C4BBF #9178CF #B6A5DF #DBD2EF

Accessibility & contrast

On white

3.63
#9178CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#9178CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178CF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178CF#FFFFFF#000000##000000
##9178CF1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E87D2
Deuteranopia (green-blind)
#6285CD
Tritanopia (blue-blind)
#848899
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9178cf;
/* rgb */ color: rgb(145, 120, 207);
/* oklch */ color: oklch(63.2% 0.129 295.7);
Tailwind
colors: {
  custom: {
    50: '#b39fde',
    500: '#9178cf',
    950: '#000000',
  },
}
SCSS
$custom: #9178cf;
$custom-light: #b39fde;
$custom-dark: #000000;
JSON
{
  "hex": "#9178cf",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 207
  },
  "hsl": {
    "h": 257.241,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.6325,
    "c": 0.1294,
    "h": 295.7
  },
  "luminance": 0.23958
}

Semantic roles & 50–950 ramp

primary
#9178CF
secondary
#D8E1C2
accent
#BB2B91
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9178CF

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

Preview Lab → · Contrast checker → · Palette generator →

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