#5835C8#5835C8

#5835C8 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.212 H 285.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5835C8
RGBrgb(88, 53, 200)
HSLhsl(254, 58%, 50%)
HSVhsv(254, 74%, 78%)
CMYKcmyk(56%, 73.5%, 0%, 21.6%)
CIE-LABlab(35.58, 52.14, -70.84)
CIE-LCHlch(35.58, 87.96, 306.36°)
OKLaboklab(46.77% 0.0576 -0.2039)
OKLCHoklch(46.77% 0.212 285.8)
XYZxyz(15.7198, 8.7901, 55.5007)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835C8 #A5C835
analogous
#355BC8 #5835C8 #A235C8
triadic
#5835C8 #C85835 #35C858
tetradic
#5835C8 #C8355B #A5C835 #35C8A2
square
#5835C8 #C8355B #A5C835 #35C8A2
split-complementary
#5835C8 #C8A235 #5BC835
monochromatic
#2D1B67 #432898 #5835C8 #7F64D6 #A795E3

Accessibility & contrast

On white

7.61
#5835C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5835C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835C8
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835C8#FFFFFF#000000##FFFFFF
##5835C81.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#235E7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5835c8;
/* rgb */ color: rgb(88, 53, 200);
/* oklch */ color: oklch(46.8% 0.212 285.8);
Tailwind
colors: {
  custom: {
    50: '#9370da',
    500: '#5835c8',
    950: '#000000',
  },
}
SCSS
$custom: #5835c8;
$custom-light: #9370da;
$custom-dark: #000000;
JSON
{
  "hex": "#5835c8",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 254.286,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46772,
    "c": 0.21187,
    "h": 285.8
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#5835C8
secondary
#BECE8B
accent
#E146BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5835C8

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

Preview Lab → · Contrast checker → · Palette generator →

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