#5835A2#5835A2

#5835A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.167 H 292.9°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5835A2
RGBrgb(88, 53, 162)
HSLhsl(259, 51%, 42%)
HSVhsv(259, 67%, 64%)
CMYKcmyk(45.7%, 67.3%, 0%, 36.5%)
CIE-LABlab(32.32, 41.26, -53.62)
CIE-LCHlch(32.32, 67.66, 307.58°)
OKLaboklab(43.45% 0.0648 -0.1534)
OKLCHoklch(43.45% 0.167 292.9)
XYZxyz(11.8174, 7.2292, 34.9481)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835A2 #7FA235
analogous
#3549A2 #5835A2 #8F35A2
triadic
#5835A2 #A25835 #35A258
tetradic
#5835A2 #A23549 #7FA235 #35A28F
square
#5835A2 #A23549 #7FA235 #35A28F
split-complementary
#5835A2 #A28F35 #49A235
monochromatic
#261746 #3F2674 #5835A2 #754FC5 #997DD4

Accessibility & contrast

On white

8.59
#5835A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5835A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835A2
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835A2#FFFFFF#000000##FFFFFF
##5835A21.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#424F67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5835a2;
/* rgb */ color: rgb(88, 53, 162);
/* oklch */ color: oklch(43.5% 0.167 292.9);
Tailwind
colors: {
  custom: {
    50: '#8d6fbe',
    500: '#5835a2',
    950: '#000000',
  },
}
SCSS
$custom: #5835a2;
$custom-light: #8d6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5835a2",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 259.266,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43451,
    "c": 0.16653,
    "h": 292.9
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#5835A2
secondary
#A6BD75
accent
#DA4EAD
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5835A2

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

Preview Lab → · Contrast checker → · Palette generator →

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