#9F58DC#9F58DC

#9F58DC is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.3% C 0.198 H 306.1°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9F58DC
RGBrgb(159, 88, 220)
HSLhsl(272, 65%, 60%)
HSVhsv(272, 60%, 86%)
CMYKcmyk(27.7%, 60%, 0%, 13.7%)
CIE-LABlab(51.29, 53.04, -56.47)
CIE-LCHlch(51.29, 77.48, 313.20°)
OKLaboklab(60.28% 0.1165 -0.1595)
OKLCHoklch(60.28% 0.198 306.1)
XYZxyz(30.7033, 19.5180, 69.8461)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F58DC #95DC58
analogous
#5D58DC #9F58DC #DC58D7
triadic
#9F58DC #DC9F58 #58DC9F
tetradic
#9F58DC #DC5D58 #95DC58 #58D7DC
square
#9F58DC #DC5D58 #95DC58 #58D7DC
split-complementary
#9F58DC #D7DC58 #58DC5D
monochromatic
#612099 #822BCC #9F58DC #BC8BE7 #D9BDF1

Accessibility & contrast

On white

4.28
#9F58DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#9F58DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F58DC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F58DC#FFFFFF#000000##000000
##9F58DC1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1878E0
Deuteranopia (green-blind)
#3E7BD9
Tritanopia (blue-blind)
#957292
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f58dc;
/* rgb */ color: rgb(159, 88, 220);
/* oklch */ color: oklch(60.3% 0.198 306.1);
Tailwind
colors: {
  custom: {
    50: '#bf8ae7',
    500: '#9f58dc',
    950: '#000000',
  },
}
SCSS
$custom: #9f58dc;
$custom-light: #bf8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f58dc",
  "rgb": {
    "r": 159,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 272.273,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60281,
    "c": 0.19751,
    "h": 306.1
  },
  "luminance": 0.19518
}

Semantic roles & 50–950 ramp

primary
#9F58DC
secondary
#C6E1AF
accent
#CD186C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F58DC

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

Preview Lab → · Contrast checker → · Palette generator →

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