#5835C9#5835C9

#5835C9 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.213 H 285.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5835C9
RGBrgb(88, 53, 201)
HSLhsl(254, 58%, 50%)
HSVhsv(254, 74%, 79%)
CMYKcmyk(56.2%, 73.6%, 0%, 21.2%)
CIE-LABlab(35.67, 52.43, -71.27)
CIE-LCHlch(35.67, 88.48, 306.34°)
OKLaboklab(46.86% 0.0573 -0.2052)
OKLCHoklch(46.86% 0.213 285.6)
XYZxyz(15.8370, 8.8370, 56.1182)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835C9 #A6C935
analogous
#355CC9 #5835C9 #A235C9
triadic
#5835C9 #C95835 #35C958
tetradic
#5835C9 #C9355C #A6C935 #35C9A2
square
#5835C9 #C9355C #A6C935 #35C9A2
split-complementary
#5835C9 #C9A235 #5CC935
monochromatic
#2E1B68 #432899 #5835C9 #8065D6 #A895E3

Accessibility & contrast

On white

7.59
#5835C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5835C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835C9
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835C9#FFFFFF#000000##FFFFFF
##5835C91.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#215E7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5835c9;
/* rgb */ color: rgb(88, 53, 201);
/* oklch */ color: oklch(46.9% 0.213 285.6);
Tailwind
colors: {
  custom: {
    50: '#9370db',
    500: '#5835c9',
    950: '#000000',
  },
}
SCSS
$custom: #5835c9;
$custom-light: #9370db;
$custom-dark: #000000;
JSON
{
  "hex": "#5835c9",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 201
  },
  "hsl": {
    "h": 254.189,
    "s": 58.268,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46864,
    "c": 0.21303,
    "h": 285.6
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#5835C9
secondary
#BFCE8B
accent
#E146BD
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5835C9

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

Preview Lab → · Contrast checker → · Palette generator →

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