#5835BD#5835BD

#5835BD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.199 H 287.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5835BD
RGBrgb(88, 53, 189)
HSLhsl(255, 56%, 47%)
HSVhsv(255, 72%, 74%)
CMYKcmyk(53.4%, 72%, 0%, 25.9%)
CIE-LABlab(34.59, 48.99, -66.01)
CIE-LCHlch(34.59, 82.21, 306.58°)
OKLaboklab(45.77% 0.06 -0.1898)
OKLCHoklch(45.77% 0.199 287.6)
XYZxyz(14.4802, 8.2943, 48.9722)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835BD #9ABD35
analogous
#3556BD #5835BD #9C35BD
triadic
#5835BD #BD5835 #35BD58
tetradic
#5835BD #BD3556 #9ABD35 #35BD9C
square
#5835BD #BD3556 #9ABD35 #35BD9C
split-complementary
#5835BD #BD9C35 #56BD35
monochromatic
#2B1A5D #42288D #5835BD #7B5DD2 #A28DDF

Accessibility & contrast

On white

7.90
#5835BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5835BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835BD
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835BD#FFFFFF#000000##FFFFFF
##5835BD1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#2F5976
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5835bd;
/* rgb */ color: rgb(88, 53, 189);
/* oklch */ color: oklch(45.8% 0.199 287.6);
Tailwind
colors: {
  custom: {
    50: '#9170d2',
    500: '#5835bd',
    950: '#000000',
  },
}
SCSS
$custom: #5835bd;
$custom-light: #9170d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5835bd",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 189
  },
  "hsl": {
    "h": 255.441,
    "s": 56.198,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4577,
    "c": 0.19905,
    "h": 287.6
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

primary
#5835BD
secondary
#B8CA84
accent
#DF48B9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5835BD

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

Preview Lab → · Contrast checker → · Palette generator →

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