#5935CD#5935CD

#5935CD is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.218 H 285.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5935CD
RGBrgb(89, 53, 205)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 74%, 80%)
CMYKcmyk(56.6%, 74.1%, 0%, 19.6%)
CIE-LABlab(36.13, 53.70, -72.83)
CIE-LCHlch(36.13, 90.49, 306.40°)
OKLaboklab(47.33% 0.0578 -0.2097)
OKLCHoklch(47.33% 0.218 285.4)
XYZxyz(16.4090, 9.0769, 58.6331)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935CD #A9CD35
analogous
#355DCD #5935CD #A535CD
triadic
#5935CD #CD5935 #35CD59
tetradic
#5935CD #CD355D #A9CD35 #35CDA5
square
#5935CD #CD355D #A9CD35 #35CDA5
split-complementary
#5935CD #CDA535 #5DCD35
monochromatic
#2E1B6D #43279E #5935CD #8166D9 #AA97E5

Accessibility & contrast

On white

7.46
#5935CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5935CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935CD
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935CD#FFFFFF#000000##FFFFFF
##5935CD1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0050CA
Tritanopia (blue-blind)
#1F5F7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5935cd;
/* rgb */ color: rgb(89, 53, 205);
/* oklch */ color: oklch(47.3% 0.218 285.4);
Tailwind
colors: {
  custom: {
    50: '#9470dd',
    500: '#5935cd',
    950: '#000000',
  },
}
SCSS
$custom: #5935cd;
$custom-light: #9470dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5935cd",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 205
  },
  "hsl": {
    "h": 254.211,
    "s": 60.317,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47326,
    "c": 0.21753,
    "h": 285.4
  },
  "luminance": 0.09078
}

Semantic roles & 50–950 ramp

primary
#5935CD
secondary
#C1D18D
accent
#E344BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5935CD

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

Preview Lab → · Contrast checker → · Palette generator →

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