#5835B5#5835B5

#5835B5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.190 H 289.0°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5835B5
RGBrgb(88, 53, 181)
HSLhsl(256, 55%, 46%)
HSVhsv(256, 71%, 71%)
CMYKcmyk(51.4%, 70.7%, 0%, 29%)
CIE-LABlab(33.89, 46.70, -62.43)
CIE-LCHlch(33.89, 77.96, 306.80°)
OKLaboklab(45.06% 0.0617 -0.1793)
OKLCHoklch(45.06% 0.19 289)
XYZxyz(13.6357, 7.9565, 44.5244)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835B5 #92B535
analogous
#3552B5 #5835B5 #9835B5
triadic
#5835B5 #B55835 #35B558
tetradic
#5835B5 #B53552 #92B535 #35B598
square
#5835B5 #B53552 #92B535 #35B598
split-complementary
#5835B5 #B59835 #52B535
monochromatic
#2A1956 #412786 #5835B5 #7959CE #9F88DC

Accessibility & contrast

On white

8.10
#5835B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5835B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835B5
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835B5#FFFFFF#000000##FFFFFF
##5835B51.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#365671
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5835b5;
/* rgb */ color: rgb(88, 53, 181);
/* oklch */ color: oklch(45.1% 0.190 289.0);
Tailwind
colors: {
  custom: {
    50: '#906fcc',
    500: '#5835b5',
    950: '#000000',
  },
}
SCSS
$custom: #5835b5;
$custom-light: #906fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5835b5",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 256.406,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45061,
    "c": 0.18957,
    "h": 289
  },
  "luminance": 0.07957
}

Semantic roles & 50–950 ramp

primary
#5835B5
secondary
#B3C680
accent
#DE4AB5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5835B5

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

Preview Lab → · Contrast checker → · Palette generator →

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