#9178C8#9178C8

#9178C8 is a light, moderate violet. Relative luminance 0.236; OKLCH L 62.9% C 0.120 H 297.2°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9178C8
RGBrgb(145, 120, 200)
HSLhsl(259, 42%, 63%)
HSVhsv(259, 40%, 78%)
CMYKcmyk(27.5%, 40%, 0%, 21.6%)
CIE-LABlab(55.71, 26.81, -38.19)
CIE-LCHlch(55.71, 46.66, 305.07°)
OKLaboklab(62.88% 0.0548 -0.1066)
OKLCHoklch(62.88% 0.12 297.2)
XYZxyz(28.8164, 23.6225, 57.6738)
Luminance0.2362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178C8 #AFC878
analogous
#7887C8 #9178C8 #B978C8
triadic
#9178C8 #C89178 #78C891
tetradic
#9178C8 #C87887 #AFC878 #78C8B9
square
#9178C8 #C87887 #AFC878 #78C8B9
split-complementary
#9178C8 #C8B978 #87C878
monochromatic
#53398C #6E4DB6 #9178C8 #B4A3DA #D8CFEB

Accessibility & contrast

On white

3.67
#9178C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#9178C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178C8
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178C8#FFFFFF#000000##000000
##9178C81.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6286CB
Deuteranopia (green-blind)
#6685C6
Tritanopia (blue-blind)
#868696
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9178c8;
/* rgb */ color: rgb(145, 120, 200);
/* oklch */ color: oklch(62.9% 0.120 297.2);
Tailwind
colors: {
  custom: {
    50: '#b39fd9',
    500: '#9178c8',
    950: '#000000',
  },
}
SCSS
$custom: #9178c8;
$custom-light: #b39fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9178c8",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 200
  },
  "hsl": {
    "h": 258.75,
    "s": 42.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62884,
    "c": 0.11989,
    "h": 297.2
  },
  "luminance": 0.23623
}

Semantic roles & 50–950 ramp

primary
#9178C8
secondary
#D3DCBF
accent
#B5308C
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9178C8

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

Preview Lab → · Contrast checker → · Palette generator →

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