#5835CA#5835CA

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

Color values

HEX#5835CA
RGBrgb(88, 53, 202)
HSLhsl(254, 58%, 50%)
HSVhsv(254, 74%, 79%)
CMYKcmyk(56.4%, 73.8%, 0%, 20.8%)
CIE-LABlab(35.76, 52.71, -71.70)
CIE-LCHlch(35.76, 88.99, 306.32°)
OKLaboklab(46.96% 0.0571 -0.2064)
OKLCHoklch(46.96% 0.214 285.5)
XYZxyz(15.9550, 8.8842, 56.7398)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835CA #A7CA35
analogous
#355DCA #5835CA #A235CA
triadic
#5835CA #CA5835 #35CA58
tetradic
#5835CA #CA355D #A7CA35 #35CAA2
square
#5835CA #CA355D #A7CA35 #35CAA2
split-complementary
#5835CA #CAA235 #5DCA35
monochromatic
#2E1C69 #43289A #5835CA #8065D7 #A896E3

Accessibility & contrast

On white

7.56
#5835CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5835CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835CA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835CA#FFFFFF#000000##FFFFFF
##5835CA1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5835ca;
/* rgb */ color: rgb(88, 53, 202);
/* oklch */ color: oklch(47.0% 0.214 285.5);
Tailwind
colors: {
  custom: {
    50: '#9370db',
    500: '#5835ca',
    950: '#000000',
  },
}
SCSS
$custom: #5835ca;
$custom-light: #9370db;
$custom-dark: #000000;
JSON
{
  "hex": "#5835ca",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 254.094,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.46957,
    "c": 0.21418,
    "h": 285.5
  },
  "luminance": 0.08885
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5835CA

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

Preview Lab → · Contrast checker → · Palette generator →

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