#5935B9#5935B9

#5935B9 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.194 H 288.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5935B9
RGBrgb(89, 53, 185)
HSLhsl(256, 55%, 47%)
HSVhsv(256, 71%, 73%)
CMYKcmyk(51.9%, 71.4%, 0%, 27.5%)
CIE-LABlab(34.34, 48.00, -64.06)
CIE-LCHlch(34.34, 80.05, 306.85°)
OKLaboklab(45.51% 0.0623 -0.184)
OKLCHoklch(45.51% 0.194 288.7)
XYZxyz(14.1473, 8.1722, 46.7215)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935B9 #95B935
analogous
#3553B9 #5935B9 #9B35B9
triadic
#5935B9 #B95935 #35B959
tetradic
#5935B9 #B93553 #95B935 #35B99B
square
#5935B9 #B93553 #95B935 #35B99B
split-complementary
#5935B9 #B99B35 #53B935
monochromatic
#2B1A5A #422789 #5935B9 #7B5BD0 #A18BDE

Accessibility & contrast

On white

7.97
#5935B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5935B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935B9
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935B9#FFFFFF#000000##FFFFFF
##5935B91.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BD
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#355873
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5935b9;
/* rgb */ color: rgb(89, 53, 185);
/* oklch */ color: oklch(45.5% 0.194 288.7);
Tailwind
colors: {
  custom: {
    50: '#916fcf',
    500: '#5935b9',
    950: '#000000',
  },
}
SCSS
$custom: #5935b9;
$custom-light: #916fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5935b9",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 185
  },
  "hsl": {
    "h": 256.364,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4551,
    "c": 0.19428,
    "h": 288.7
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#5935B9
secondary
#B5C882
accent
#DF49B6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5935B9

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

Preview Lab → · Contrast checker → · Palette generator →

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