#5835C6#5835C6

#5835C6 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.210 H 286.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5835C6
RGBrgb(88, 53, 198)
HSLhsl(254, 58%, 49%)
HSVhsv(254, 73%, 78%)
CMYKcmyk(55.6%, 73.2%, 0%, 22.4%)
CIE-LABlab(35.39, 51.57, -69.97)
CIE-LCHlch(35.39, 86.92, 306.39°)
OKLaboklab(46.59% 0.058 -0.2014)
OKLCHoklch(46.59% 0.21 286.1)
XYZxyz(15.4876, 8.6973, 54.2778)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835C6 #A3C635
analogous
#355AC6 #5835C6 #A135C6
triadic
#5835C6 #C65835 #35C658
tetradic
#5835C6 #C6355A #A3C635 #35C6A1
square
#5835C6 #C6355A #A3C635 #35C6A1
split-complementary
#5835C6 #C6A135 #5AC635
monochromatic
#2D1B65 #432896 #5835C6 #7F63D5 #A693E2

Accessibility & contrast

On white

7.67
#5835C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5835C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835C6
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835C6#FFFFFF#000000##FFFFFF
##5835C61.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004FC3
Tritanopia (blue-blind)
#255D7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5835c6;
/* rgb */ color: rgb(88, 53, 198);
/* oklch */ color: oklch(46.6% 0.210 286.1);
Tailwind
colors: {
  custom: {
    50: '#9370d8',
    500: '#5835c6',
    950: '#000000',
  },
}
SCSS
$custom: #5835c6;
$custom-light: #9370d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5835c6",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 198
  },
  "hsl": {
    "h": 254.483,
    "s": 57.769,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46588,
    "c": 0.20956,
    "h": 286.1
  },
  "luminance": 0.08698
}

Semantic roles & 50–950 ramp

primary
#5835C6
secondary
#BDCD8A
accent
#E147BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5835C6

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

Preview Lab → · Contrast checker → · Palette generator →

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