#5835CD#5835CD

#5835CD is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.218 H 285.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5835CD
RGBrgb(88, 53, 205)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 74%, 80%)
CMYKcmyk(57.1%, 74.1%, 0%, 19.6%)
CIE-LABlab(36.04, 53.57, -72.99)
CIE-LCHlch(36.04, 90.54, 306.28°)
OKLaboklab(47.24% 0.0564 -0.2102)
OKLCHoklch(47.24% 0.218 285)
XYZxyz(16.3137, 9.0277, 58.6287)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835CD #AACD35
analogous
#355ECD #5835CD #A435CD
triadic
#5835CD #CD5835 #35CD58
tetradic
#5835CD #CD355E #AACD35 #35CDA4
square
#5835CD #CD355E #AACD35 #35CDA4
split-complementary
#5835CD #CDA435 #5ECD35
monochromatic
#2E1B6D #42279E #5835CD #8166D9 #A997E5

Accessibility & contrast

On white

7.48
#5835CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5835CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835CD
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835CD#FFFFFF#000000##FFFFFF
##5835CD1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0050CA
Tritanopia (blue-blind)
#1B5F7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5835cd;
/* rgb */ color: rgb(88, 53, 205);
/* oklch */ color: oklch(47.2% 0.218 285.0);
Tailwind
colors: {
  custom: {
    50: '#9470dd',
    500: '#5835cd',
    950: '#000000',
  },
}
SCSS
$custom: #5835cd;
$custom-light: #9470dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5835cd",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 205
  },
  "hsl": {
    "h": 253.816,
    "s": 60.317,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47236,
    "c": 0.21763,
    "h": 285
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#5835CD
secondary
#C1D18D
accent
#E344BF
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5835CD

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

Preview Lab → · Contrast checker → · Palette generator →

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