#5835AA#5835AA

#5835AA is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.176 H 291.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5835AA
RGBrgb(88, 53, 170)
HSLhsl(258, 52%, 44%)
HSVhsv(258, 69%, 67%)
CMYKcmyk(48.2%, 68.8%, 0%, 33.3%)
CIE-LABlab(32.97, 43.55, -57.38)
CIE-LCHlch(32.97, 72.03, 307.19°)
OKLaboklab(44.12% 0.0636 -0.1644)
OKLCHoklch(44.12% 0.176 291.2)
XYZxyz(12.5513, 7.5227, 38.8131)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835AA #87AA35
analogous
#354CAA #5835AA #9235AA
triadic
#5835AA #AA5835 #35AA58
tetradic
#5835AA #AA354C #87AA35 #35AA92
square
#5835AA #AA354C #87AA35 #35AA92
split-complementary
#5835AA #AA9235 #4CAA35
monochromatic
#28184D #40267B #5835AA #7653C9 #9B82D8

Accessibility & contrast

On white

8.38
#5835AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5835AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5835AA#FFFFFF#000000##FFFFFF
##5835AA1.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#3E526B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5835aa;
/* rgb */ color: rgb(88, 53, 170);
/* oklch */ color: oklch(44.1% 0.176 291.2);
Tailwind
colors: {
  custom: {
    50: '#8f6fc4',
    500: '#5835aa',
    950: '#000000',
  },
}
SCSS
$custom: #5835aa;
$custom-light: #8f6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5835aa",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 170
  },
  "hsl": {
    "h": 257.949,
    "s": 52.466,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44116,
    "c": 0.17633,
    "h": 291.2
  },
  "luminance": 0.07523
}

Semantic roles & 50–950 ramp

primary
#5835AA
secondary
#ACC17A
accent
#DC4CB1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5835AA

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

Preview Lab → · Contrast checker → · Palette generator →

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