#5835D2#5835D2

#5835D2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.223 H 284.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5835D2
RGBrgb(88, 53, 210)
HSLhsl(253, 64%, 52%)
HSVhsv(253, 75%, 82%)
CMYKcmyk(58.1%, 74.8%, 0%, 17.6%)
CIE-LABlab(36.50, 55.00, -75.12)
CIE-LCHlch(36.50, 93.10, 306.21°)
OKLaboklab(47.71% 0.0552 -0.2164)
OKLCHoklch(47.71% 0.223 284.3)
XYZxyz(16.9269, 9.2730, 61.8582)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835D2 #AFD235
analogous
#3561D2 #5835D2 #A735D2
triadic
#5835D2 #D25835 #35D258
tetradic
#5835D2 #D23561 #AFD235 #35D2A7
square
#5835D2 #D23561 #AFD235 #35D2A7
split-complementary
#5835D2 #D2A735 #61D235
monochromatic
#2E1A73 #4125A5 #5835D2 #8167DD #AB99E8

Accessibility & contrast

On white

7.36
#5835D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5835D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5835D2#FFFFFF#000000##FFFFFF
##5835D21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD6
Deuteranopia (green-blind)
#0051CF
Tritanopia (blue-blind)
#0E6181
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5835d2;
/* rgb */ color: rgb(88, 53, 210);
/* oklch */ color: oklch(47.7% 0.223 284.3);
Tailwind
colors: {
  custom: {
    50: '#9570e1',
    500: '#5835d2',
    950: '#000000',
  },
}
SCSS
$custom: #5835d2;
$custom-light: #9570e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5835d2",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 210
  },
  "hsl": {
    "h": 253.376,
    "s": 63.563,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47706,
    "c": 0.22335,
    "h": 284.3
  },
  "luminance": 0.09274
}

Semantic roles & 50–950 ramp

primary
#5835D2
secondary
#C5D48F
accent
#E741C2
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0815
muted
#7E7B84

Preview Lab

Preview with #5835D2

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

Preview Lab → · Contrast checker → · Palette generator →

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