#5835EA#5835EA

#5835EA is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.250 H 281.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5835EA
RGBrgb(88, 53, 234)
HSLhsl(252, 81%, 56%)
HSVhsv(252, 77%, 92%)
CMYKcmyk(62.4%, 77.4%, 0%, 8.2%)
CIE-LABlab(38.83, 61.78, -85.03)
CIE-LCHlch(38.83, 105.10, 306.00°)
OKLaboklab(50.03% 0.0489 -0.2454)
OKLCHoklch(50.03% 0.25 281.3)
XYZxyz(20.1442, 10.5599, 78.8027)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835EA #C7EA35
analogous
#356DEA #5835EA #B335EA
triadic
#5835EA #EA5835 #35EA58
tetradic
#5835EA #EA356D #C7EA35 #35EAB3
square
#5835EA #EA356D #C7EA35 #35EAB3
split-complementary
#5835EA #EAB335 #6DEA35
monochromatic
#291095 #3915CD #5835EA #866CF0 #B4A4F6

Accessibility & contrast

On white

6.75
#5835EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5835EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5835EA#FFFFFF#000000##FFFFFF
##5835EA1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061EF
Deuteranopia (green-blind)
#0055E7
Tritanopia (blue-blind)
#006B8F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5835ea;
/* rgb */ color: rgb(88, 53, 234);
/* oklch */ color: oklch(50.0% 0.250 281.3);
Tailwind
colors: {
  custom: {
    50: '#9972f2',
    500: '#5835ea',
    950: '#000000',
  },
}
SCSS
$custom: #5835ea;
$custom-light: #9972f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5835ea",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 234
  },
  "hsl": {
    "h": 251.602,
    "s": 81.166,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50029,
    "c": 0.25019,
    "h": 281.3
  },
  "luminance": 0.10561
}

Semantic roles & 50–950 ramp

primary
#5835EA
secondary
#D4E398
accent
#F830D1
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#100817
muted
#7F7B85

Preview Lab

Preview with #5835EA

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

Preview Lab → · Contrast checker → · Palette generator →

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