#5835B4#5835B4

#5835B4 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.188 H 289.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5835B4
RGBrgb(88, 53, 180)
HSLhsl(257, 55%, 46%)
HSVhsv(257, 71%, 71%)
CMYKcmyk(51.1%, 70.6%, 0%, 29.4%)
CIE-LABlab(33.81, 46.41, -61.97)
CIE-LCHlch(33.81, 77.42, 306.83°)
OKLaboklab(44.97% 0.0619 -0.1779)
OKLCHoklch(44.97% 0.188 289.2)
XYZxyz(13.5334, 7.9156, 43.9859)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835B4 #91B435
analogous
#3552B4 #5835B4 #9735B4
triadic
#5835B4 #B45835 #35B458
tetradic
#5835B4 #B43552 #91B435 #35B497
square
#5835B4 #B43552 #91B435 #35B497
split-complementary
#5835B4 #B49735 #52B435
monochromatic
#2A1955 #412785 #5835B4 #7958CE #9F88DC

Accessibility & contrast

On white

8.13
#5835B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5835B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835B4
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835B4#FFFFFF#000000##FFFFFF
##5835B41.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#375671
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5835b4;
/* rgb */ color: rgb(88, 53, 180);
/* oklch */ color: oklch(45.0% 0.188 289.2);
Tailwind
colors: {
  custom: {
    50: '#906fcb',
    500: '#5835b4',
    950: '#000000',
  },
}
SCSS
$custom: #5835b4;
$custom-light: #906fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5835b4",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 180
  },
  "hsl": {
    "h": 256.535,
    "s": 54.506,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44974,
    "c": 0.18838,
    "h": 289.2
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#5835B4
secondary
#B2C67F
accent
#DE4AB5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5835B4

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

Preview Lab → · Contrast checker → · Palette generator →

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