#5835B2#5835B2

#5835B2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.186 H 289.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5835B2
RGBrgb(88, 53, 178)
HSLhsl(257, 54%, 45%)
HSVhsv(257, 70%, 70%)
CMYKcmyk(50.6%, 70.2%, 0%, 30.2%)
CIE-LABlab(33.64, 45.84, -61.06)
CIE-LCHlch(33.64, 76.35, 306.89°)
OKLaboklab(44.8% 0.0622 -0.1753)
OKLCHoklch(44.8% 0.186 289.6)
XYZxyz(13.3312, 7.8347, 42.9207)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835B2 #8FB235
analogous
#3550B2 #5835B2 #9635B2
triadic
#5835B2 #B25835 #35B258
tetradic
#5835B2 #B23550 #8FB235 #35B296
square
#5835B2 #B23550 #8FB235 #35B296
split-complementary
#5835B2 #B29635 #50B235
monochromatic
#291954 #412783 #5835B2 #7857CD #9E86DB

Accessibility & contrast

On white

8.18
#5835B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5835B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835B2
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835B2#FFFFFF#000000##FFFFFF
##5835B21.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#38556F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5835b2;
/* rgb */ color: rgb(88, 53, 178);
/* oklch */ color: oklch(44.8% 0.186 289.6);
Tailwind
colors: {
  custom: {
    50: '#906fca',
    500: '#5835b2',
    950: '#000000',
  },
}
SCSS
$custom: #5835b2;
$custom-light: #906fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5835b2",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 256.8,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.448,
    "c": 0.18598,
    "h": 289.6
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#5835B2
secondary
#B1C57E
accent
#DD4AB4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5835B2

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

Preview Lab → · Contrast checker → · Palette generator →

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