#9159CB#9159CB

#9159CB is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.8% C 0.173 H 304.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#9159CB
RGBrgb(145, 89, 203)
HSLhsl(269, 52%, 57%)
HSVhsv(269, 56%, 80%)
CMYKcmyk(28.6%, 56.2%, 0%, 20.4%)
CIE-LABlab(48.85, 45.14, -50.76)
CIE-LCHlch(48.85, 67.93, 311.64°)
OKLaboklab(57.82% 0.0973 -0.1432)
OKLCHoklch(57.82% 0.173 304.2)
XYZxyz(26.0266, 17.4764, 58.4905)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9159CB #93CB59
analogous
#595ACB #9159CB #CA59CB
triadic
#9159CB #CB9159 #59CB91
tetradic
#9159CB #CB595A #93CB59 #59CBCA
square
#9159CB #CB595A #93CB59 #59CBCA
split-complementary
#9159CB #CBCA59 #5ACB59
monochromatic
#542881 #7237B0 #9159CB #B088DA #CFB6E8

Accessibility & contrast

On white

4.67
#9159CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#9159CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9159CB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9159CB#FFFFFF#000000##FFFFFF
##9159CB1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D73CF
Deuteranopia (green-blind)
#4274C8
Tritanopia (blue-blind)
#876F89
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9159cb;
/* rgb */ color: rgb(145, 89, 203);
/* oklch */ color: oklch(57.8% 0.173 304.2);
Tailwind
colors: {
  custom: {
    50: '#b48adb',
    500: '#9159cb',
    950: '#000000',
  },
}
SCSS
$custom: #9159cb;
$custom-light: #b48adb;
$custom-dark: #000000;
JSON
{
  "hex": "#9159cb",
  "rgb": {
    "r": 145,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 269.474,
    "s": 52.294,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57816,
    "c": 0.17311,
    "h": 304.2
  },
  "luminance": 0.17476
}

Semantic roles & 50–950 ramp

primary
#9159CB
secondary
#C0D7A9
accent
#DC4C95
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9159CB

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

Preview Lab → · Contrast checker → · Palette generator →

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