#9B58DB#9B58DB

#9B58DB is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.8% C 0.195 H 304.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9B58DB
RGBrgb(155, 88, 219)
HSLhsl(271, 65%, 60%)
HSVhsv(271, 60%, 86%)
CMYKcmyk(29.2%, 59.8%, 0%, 14.1%)
CIE-LABlab(50.76, 51.88, -56.78)
CIE-LCHlch(50.76, 76.91, 312.42°)
OKLaboklab(59.77% 0.1114 -0.1605)
OKLCHoklch(59.77% 0.195 304.7)
XYZxyz(29.7907, 19.0626, 69.1141)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B58DB #98DB58
analogous
#5958DB #9B58DB #DB58D9
triadic
#9B58DB #DB9B58 #58DB9B
tetradic
#9B58DB #DB5958 #98DB58 #58D9DB
square
#9B58DB #DB5958 #98DB58 #58D9DB
split-complementary
#9B58DB #D9DB58 #58DB59
monochromatic
#5E2198 #7D2CCA #9B58DB #B98AE6 #D7BDF1

Accessibility & contrast

On white

4.36
#9B58DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#9B58DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B58DB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B58DB#FFFFFF#000000##000000
##9B58DB1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1577DF
Deuteranopia (green-blind)
#3A79D8
Tritanopia (blue-blind)
#907291
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9b58db;
/* rgb */ color: rgb(155, 88, 219);
/* oklch */ color: oklch(59.8% 0.195 304.7);
Tailwind
colors: {
  custom: {
    50: '#bc8ae7',
    500: '#9b58db',
    950: '#000000',
  },
}
SCSS
$custom: #9b58db;
$custom-light: #bc8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b58db",
  "rgb": {
    "r": 155,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 270.687,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59774,
    "c": 0.19538,
    "h": 304.7
  },
  "luminance": 0.19062
}

Semantic roles & 50–950 ramp

primary
#9B58DB
secondary
#C7E1AE
accent
#CC1971
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B58DB

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

Preview Lab → · Contrast checker → · Palette generator →

#9B58DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva