#5835CF#5835CF

#5835CF is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.220 H 284.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5835CF
RGBrgb(88, 53, 207)
HSLhsl(254, 62%, 51%)
HSVhsv(254, 74%, 81%)
CMYKcmyk(57.5%, 74.4%, 0%, 18.8%)
CIE-LABlab(36.22, 54.14, -73.84)
CIE-LCHlch(36.22, 91.56, 306.25°)
OKLaboklab(47.42% 0.0559 -0.2127)
OKLCHoklch(47.42% 0.22 284.7)
XYZxyz(16.5567, 9.1249, 59.9082)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835CF #ACCF35
analogous
#355FCF #5835CF #A535CF
triadic
#5835CF #CF5835 #35CF58
tetradic
#5835CF #CF355F #ACCF35 #35CFA5
square
#5835CF #CF355F #ACCF35 #35CFA5
split-complementary
#5835CF #CFA535 #5FCF35
monochromatic
#2E1A6F #4226A1 #5835CF #8166DB #AA98E7

Accessibility & contrast

On white

7.43
#5835CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5835CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5835CF#FFFFFF#000000##FFFFFF
##5835CF1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#166080
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5835cf;
/* rgb */ color: rgb(88, 53, 207);
/* oklch */ color: oklch(47.4% 0.220 284.7);
Tailwind
colors: {
  custom: {
    50: '#9470df',
    500: '#5835cf',
    950: '#000000',
  },
}
SCSS
$custom: #5835cf;
$custom-light: #9470df;
$custom-dark: #000000;
JSON
{
  "hex": "#5835cf",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 207
  },
  "hsl": {
    "h": 253.636,
    "s": 61.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47424,
    "c": 0.21992,
    "h": 284.7
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#5835CF
secondary
#C3D28E
accent
#E543C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5835CF

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

Preview Lab → · Contrast checker → · Palette generator →

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