#5935CA#5935CA

#5935CA is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.214 H 285.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5935CA
RGBrgb(89, 53, 202)
HSLhsl(254, 58%, 50%)
HSVhsv(254, 74%, 79%)
CMYKcmyk(55.9%, 73.8%, 0%, 20.8%)
CIE-LABlab(35.86, 52.85, -71.54)
CIE-LCHlch(35.86, 88.95, 306.45°)
OKLaboklab(47.05% 0.0585 -0.2059)
OKLCHoklch(47.05% 0.214 285.9)
XYZxyz(16.0504, 8.9334, 56.7442)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935CA #A6CA35
analogous
#355BCA #5935CA #A435CA
triadic
#5935CA #CA5935 #35CA59
tetradic
#5935CA #CA355B #A6CA35 #35CAA4
square
#5935CA #CA355B #A6CA35 #35CAA4
split-complementary
#5935CA #CAA435 #5BCA35
monochromatic
#2E1C69 #44289A #5935CA #8165D7 #A996E3

Accessibility & contrast

On white

7.54
#5935CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5935CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935CA
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935CA#FFFFFF#000000##FFFFFF
##5935CA1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#235E7D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5935ca;
/* rgb */ color: rgb(89, 53, 202);
/* oklch */ color: oklch(47.0% 0.214 285.9);
Tailwind
colors: {
  custom: {
    50: '#9470db',
    500: '#5935ca',
    950: '#000000',
  },
}
SCSS
$custom: #5935ca;
$custom-light: #9470db;
$custom-dark: #000000;
JSON
{
  "hex": "#5935ca",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 254.497,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.47047,
    "c": 0.21409,
    "h": 285.9
  },
  "luminance": 0.08934
}

Semantic roles & 50–950 ramp

primary
#5935CA
secondary
#BFCF8C
accent
#E246BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5935CA

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

Preview Lab → · Contrast checker → · Palette generator →

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