#5935BD#5935BD

#5935BD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.199 H 288.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5935BD
RGBrgb(89, 53, 189)
HSLhsl(256, 56%, 47%)
HSVhsv(256, 72%, 74%)
CMYKcmyk(52.9%, 72%, 0%, 25.9%)
CIE-LABlab(34.69, 49.14, -65.85)
CIE-LCHlch(34.69, 82.16, 306.74°)
OKLaboklab(45.87% 0.0615 -0.1892)
OKLCHoklch(45.87% 0.199 288)
XYZxyz(14.5755, 8.3435, 48.9767)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935BD #99BD35
analogous
#3555BD #5935BD #9D35BD
triadic
#5935BD #BD5935 #35BD59
tetradic
#5935BD #BD3555 #99BD35 #35BD9D
square
#5935BD #BD3555 #99BD35 #35BD9D
split-complementary
#5935BD #BD9D35 #55BD35
monochromatic
#2C1A5D #42288D #5935BD #7C5DD2 #A38DDF

Accessibility & contrast

On white

7.87
#5935BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5935BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935BD
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935BD#FFFFFF#000000##FFFFFF
##5935BD1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#325976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5935bd;
/* rgb */ color: rgb(89, 53, 189);
/* oklch */ color: oklch(45.9% 0.199 288.0);
Tailwind
colors: {
  custom: {
    50: '#9270d2',
    500: '#5935bd',
    950: '#000000',
  },
}
SCSS
$custom: #5935bd;
$custom-light: #9270d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5935bd",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 189
  },
  "hsl": {
    "h": 255.882,
    "s": 56.198,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45865,
    "c": 0.19899,
    "h": 288
  },
  "luminance": 0.08344
}

Semantic roles & 50–950 ramp

primary
#5935BD
secondary
#B7CA84
accent
#DF48B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5935BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5935BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva