#5935CC#5935CC

#5935CC is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.216 H 285.6°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5935CC
RGBrgb(89, 53, 204)
HSLhsl(254, 60%, 50%)
HSVhsv(254, 74%, 80%)
CMYKcmyk(56.4%, 74%, 0%, 20%)
CIE-LABlab(36.04, 53.42, -72.40)
CIE-LCHlch(36.04, 89.98, 306.42°)
OKLaboklab(47.23% 0.0581 -0.2084)
OKLCHoklch(47.23% 0.216 285.6)
XYZxyz(16.2887, 9.0287, 57.9994)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935CC #A8CC35
analogous
#355CCC #5935CC #A535CC
triadic
#5935CC #CC5935 #35CC59
tetradic
#5935CC #CC355C #A8CC35 #35CCA5
square
#5935CC #CC355C #A8CC35 #35CCA5
split-complementary
#5935CC #CCA535 #5CCC35
monochromatic
#2E1B6B #43279C #5935CC #8166D8 #A997E5

Accessibility & contrast

On white

7.48
#5935CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5935CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935CC
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935CC#FFFFFF#000000##FFFFFF
##5935CC1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#205F7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5935cc;
/* rgb */ color: rgb(89, 53, 204);
/* oklch */ color: oklch(47.2% 0.216 285.6);
Tailwind
colors: {
  custom: {
    50: '#9470dd',
    500: '#5935cc',
    950: '#000000',
  },
}
SCSS
$custom: #5935cc;
$custom-light: #9470dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5935cc",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 254.305,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47233,
    "c": 0.21638,
    "h": 285.6
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#5935CC
secondary
#C0D08D
accent
#E345BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5935CC

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

Preview Lab → · Contrast checker → · Palette generator →

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