#9178F2#9178F2

#9178F2 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.3% C 0.176 H 290.1°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9178F2
RGBrgb(145, 120, 242)
HSLhsl(252, 82%, 71%)
HSVhsv(252, 50%, 95%)
CMYKcmyk(40.1%, 50.4%, 0%, 5.1%)
CIE-LABlab(57.91, 37.82, -58.28)
CIE-LCHlch(57.91, 69.48, 302.98°)
OKLaboklab(65.25% 0.0604 -0.1653)
OKLCHoklch(65.25% 0.176 290.1)
XYZxyz(34.4161, 25.8624, 87.1658)
Luminance0.2586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178F2 #D9F278
analogous
#789CF2 #9178F2 #CE78F2
triadic
#9178F2 #F29178 #78F291
tetradic
#9178F2 #F2789C #D9F278 #78F2CE
square
#9178F2 #F2789C #D9F278 #78F2CE
split-complementary
#9178F2 #F2CE78 #9CF278
monochromatic
#3E15DB #6440ED #9178F2 #BEB0F7 #E8E3FC

Accessibility & contrast

On white

3.40
#9178F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9178F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178F2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178F2#FFFFFF#000000##000000
##9178F21.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#458DF6
Deuteranopia (green-blind)
#4788EF
Tritanopia (blue-blind)
#7691AA
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9178f2;
/* rgb */ color: rgb(145, 120, 242);
/* oklch */ color: oklch(65.3% 0.176 290.1);
Tailwind
colors: {
  custom: {
    50: '#b69ff7',
    500: '#9178f2',
    950: '#000000',
  },
}
SCSS
$custom: #9178f2;
$custom-light: #b69ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#9178f2",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 252.295,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65253,
    "c": 0.17596,
    "h": 290.1
  },
  "luminance": 0.25863
}

Semantic roles & 50–950 ramp

primary
#9178F2
secondary
#ECF3D3
accent
#DF07B3
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9178F2

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

Preview Lab → · Contrast checker → · Palette generator →

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