#5935CE#5935CE

#5935CE is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.219 H 285.3°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5935CE
RGBrgb(89, 53, 206)
HSLhsl(254, 61%, 51%)
HSVhsv(254, 74%, 81%)
CMYKcmyk(56.8%, 74.3%, 0%, 19.2%)
CIE-LABlab(36.22, 53.99, -73.26)
CIE-LCHlch(36.22, 91.00, 306.39°)
OKLaboklab(47.42% 0.0576 -0.211)
OKLCHoklch(47.42% 0.219 285.3)
XYZxyz(16.5301, 9.1253, 59.2709)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935CE #AACE35
analogous
#355DCE #5935CE #A635CE
triadic
#5935CE #CE5935 #35CE59
tetradic
#5935CE #CE355D #AACE35 #35CEA6
square
#5935CE #CE355D #AACE35 #35CEA6
split-complementary
#5935CE #CEA635 #5DCE35
monochromatic
#2E1B6E #43279F #5935CE #8166DA #AA98E6

Accessibility & contrast

On white

7.43
#5935CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5935CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935CE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935CE#FFFFFF#000000##FFFFFF
##5935CE1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D2
Deuteranopia (green-blind)
#0050CB
Tritanopia (blue-blind)
#1D607F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5935ce;
/* rgb */ color: rgb(89, 53, 206);
/* oklch */ color: oklch(47.4% 0.219 285.3);
Tailwind
colors: {
  custom: {
    50: '#9470de',
    500: '#5935ce',
    950: '#000000',
  },
}
SCSS
$custom: #5935ce;
$custom-light: #9470de;
$custom-dark: #000000;
JSON
{
  "hex": "#5935ce",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 206
  },
  "hsl": {
    "h": 254.118,
    "s": 60.956,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47419,
    "c": 0.21867,
    "h": 285.3
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#5935CE
secondary
#C1D18D
accent
#E444BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5935CE

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

Preview Lab → · Contrast checker → · Palette generator →

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