#5835CC#5835CC

#5835CC is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.216 H 285.2°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5835CC
RGBrgb(88, 53, 204)
HSLhsl(254, 60%, 50%)
HSVhsv(254, 74%, 80%)
CMYKcmyk(56.9%, 74%, 0%, 20%)
CIE-LABlab(35.95, 53.28, -72.56)
CIE-LCHlch(35.95, 90.02, 306.29°)
OKLaboklab(47.14% 0.0566 -0.2089)
OKLCHoklch(47.14% 0.216 285.2)
XYZxyz(16.1934, 8.9796, 57.9950)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835CC #A9CC35
analogous
#355ECC #5835CC #A335CC
triadic
#5835CC #CC5835 #35CC58
tetradic
#5835CC #CC355E #A9CC35 #35CCA3
square
#5835CC #CC355E #A9CC35 #35CCA3
split-complementary
#5835CC #CCA335 #5ECC35
monochromatic
#2E1B6B #43279C #5835CC #8066D8 #A997E5

Accessibility & contrast

On white

7.51
#5835CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5835CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835CC
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835CC#FFFFFF#000000##FFFFFF
##5835CC1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#1C5F7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5835cc;
/* rgb */ color: rgb(88, 53, 204);
/* oklch */ color: oklch(47.1% 0.216 285.2);
Tailwind
colors: {
  custom: {
    50: '#9470dd',
    500: '#5835cc',
    950: '#000000',
  },
}
SCSS
$custom: #5835cc;
$custom-light: #9470dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5835cc",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 253.907,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47143,
    "c": 0.21649,
    "h": 285.2
  },
  "luminance": 0.08981
}

Semantic roles & 50–950 ramp

primary
#5835CC
secondary
#C0D08D
accent
#E345BE
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5835CC

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

Preview Lab → · Contrast checker → · Palette generator →

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