#5835DC#5835DC

#5835DC is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.235 H 283.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5835DC
RGBrgb(88, 53, 220)
HSLhsl(253, 70%, 54%)
HSVhsv(253, 76%, 86%)
CMYKcmyk(60%, 75.9%, 0%, 13.7%)
CIE-LABlab(37.46, 57.83, -79.31)
CIE-LCHlch(37.46, 98.16, 306.10°)
OKLaboklab(48.66% 0.0526 -0.2287)
OKLCHoklch(48.66% 0.235 283)
XYZxyz(18.2119, 9.7870, 68.6257)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835DC #B9DC35
analogous
#3565DC #5835DC #AB35DC
triadic
#5835DC #DC5835 #35DC58
tetradic
#5835DC #DC3565 #B9DC35 #35DCAB
square
#5835DC #DC3565 #B9DC35 #35DCAB
split-complementary
#5835DC #DCAB35 #65DC35
monochromatic
#2C1680 #3F1FB5 #5835DC #8369E5 #AE9DEE

Accessibility & contrast

On white

7.10
#5835DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5835DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5835DC#FFFFFF#000000##FFFFFF
##5835DC1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE1
Deuteranopia (green-blind)
#0052D9
Tritanopia (blue-blind)
#006587
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5835dc;
/* rgb */ color: rgb(88, 53, 220);
/* oklch */ color: oklch(48.7% 0.235 283.0);
Tailwind
colors: {
  custom: {
    50: '#9671e8',
    500: '#5835dc',
    950: '#000000',
  },
}
SCSS
$custom: #5835dc;
$custom-light: #9671e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5835dc",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 220
  },
  "hsl": {
    "h": 252.575,
    "s": 70.464,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48661,
    "c": 0.23464,
    "h": 283
  },
  "luminance": 0.09788
}

Semantic roles & 50–950 ramp

primary
#5835DC
secondary
#CBDA93
accent
#ED3BC8
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5835DC

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

Preview Lab → · Contrast checker → · Palette generator →

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