#9158CB#9158CB

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

Color values

HEX#9158CB
RGBrgb(145, 88, 203)
HSLhsl(270, 53%, 57%)
HSVhsv(270, 57%, 80%)
CMYKcmyk(28.6%, 56.7%, 0%, 20.4%)
CIE-LABlab(48.65, 45.68, -51.09)
CIE-LCHlch(48.65, 68.53, 311.80°)
OKLaboklab(57.67% 0.0985 -0.1442)
OKLCHoklch(57.67% 0.175 304.3)
XYZxyz(25.9439, 17.3111, 58.4629)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158CB #92CB58
analogous
#5859CB #9158CB #CA58CB
triadic
#9158CB #CB9158 #58CB91
tetradic
#9158CB #CB5859 #92CB58 #58CBCA
square
#9158CB #CB5859 #92CB58 #58CBCA
split-complementary
#9158CB #CBCA58 #59CB58
monochromatic
#542881 #7237AF #9158CB #B087DA #CEB5E8

Accessibility & contrast

On white

4.71
#9158CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#9158CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9158CB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158CB#FFFFFF#000000##FFFFFF
##9158CB1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A72CF
Deuteranopia (green-blind)
#4074C8
Tritanopia (blue-blind)
#876E89
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9158cb;
/* rgb */ color: rgb(145, 88, 203);
/* oklch */ color: oklch(57.7% 0.175 304.3);
Tailwind
colors: {
  custom: {
    50: '#b589db',
    500: '#9158cb',
    950: '#000000',
  },
}
SCSS
$custom: #9158cb;
$custom-light: #b589db;
$custom-dark: #000000;
JSON
{
  "hex": "#9158cb",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 269.739,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57665,
    "c": 0.17462,
    "h": 304.3
  },
  "luminance": 0.17311
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9158CB

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

Preview Lab → · Contrast checker → · Palette generator →

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