#9159C8#9159C8

#9159C8 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.170 H 305.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9159C8
RGBrgb(145, 89, 200)
HSLhsl(270, 50%, 57%)
HSVhsv(270, 56%, 78%)
CMYKcmyk(27.5%, 55.5%, 0%, 21.6%)
CIE-LABlab(48.68, 44.42, -49.32)
CIE-LCHlch(48.68, 66.37, 312.01°)
OKLaboklab(57.63% 0.0972 -0.139)
OKLCHoklch(57.63% 0.17 305)
XYZxyz(25.6725, 17.3348, 56.6259)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9159C8 #90C859
analogous
#5A59C8 #9159C8 #C859C8
triadic
#9159C8 #C89159 #59C891
tetradic
#9159C8 #C85A59 #90C859 #59C8C8
square
#9159C8 #C85A59 #90C859 #59C8C8
split-complementary
#9159C8 #C8C859 #59C85A
monochromatic
#54297D #7239AB #9159C8 #AF87D7 #CEB5E6

Accessibility & contrast

On white

4.70
#9159C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#9159C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9159C8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9159C8#FFFFFF#000000##FFFFFF
##9159C81.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3072CC
Deuteranopia (green-blind)
#4474C5
Tritanopia (blue-blind)
#886E88
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9159c8;
/* rgb */ color: rgb(145, 89, 200);
/* oklch */ color: oklch(57.6% 0.170 305.0);
Tailwind
colors: {
  custom: {
    50: '#b48ad9',
    500: '#9159c8',
    950: '#000000',
  },
}
SCSS
$custom: #9159c8;
$custom-light: #b48ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#9159c8",
  "rgb": {
    "r": 145,
    "g": 89,
    "b": 200
  },
  "hsl": {
    "h": 270.27,
    "s": 50.226,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5763,
    "c": 0.16957,
    "h": 305
  },
  "luminance": 0.17335
}

Semantic roles & 50–950 ramp

primary
#9159C8
secondary
#BED5A8
accent
#DA4E93
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #9159C8

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

Preview Lab → · Contrast checker → · Palette generator →

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