#5935C8#5935C8

#5935C8 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.212 H 286.2°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5935C8
RGBrgb(89, 53, 200)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 74%, 78%)
CMYKcmyk(55.5%, 73.5%, 0%, 21.6%)
CIE-LABlab(35.67, 52.28, -70.68)
CIE-LCHlch(35.67, 87.91, 306.49°)
OKLaboklab(46.86% 0.059 -0.2034)
OKLCHoklch(46.86% 0.212 286.2)
XYZxyz(15.8151, 8.8393, 55.5052)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935C8 #A4C835
analogous
#355AC8 #5935C8 #A335C8
triadic
#5935C8 #C85935 #35C859
tetradic
#5935C8 #C8355A #A4C835 #35C8A3
square
#5935C8 #C8355A #A4C835 #35C8A3
split-complementary
#5935C8 #C8A335 #5AC835
monochromatic
#2E1B67 #432898 #5935C8 #8064D6 #A895E3

Accessibility & contrast

On white

7.59
#5935C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5935C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935C8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935C8#FFFFFF#000000##FFFFFF
##5935C81.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#265D7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5935c8;
/* rgb */ color: rgb(89, 53, 200);
/* oklch */ color: oklch(46.9% 0.212 286.2);
Tailwind
colors: {
  custom: {
    50: '#9370da',
    500: '#5935c8',
    950: '#000000',
  },
}
SCSS
$custom: #5935c8;
$custom-light: #9370da;
$custom-dark: #000000;
JSON
{
  "hex": "#5935c8",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 254.694,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46863,
    "c": 0.21179,
    "h": 286.2
  },
  "luminance": 0.0884
}

Semantic roles & 50–950 ramp

primary
#5935C8
secondary
#BECE8B
accent
#E146BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5935C8

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

Preview Lab → · Contrast checker → · Palette generator →

#5935C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva