#5935C6#5935C6

#5935C6 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.209 H 286.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5935C6
RGBrgb(89, 53, 198)
HSLhsl(255, 58%, 49%)
HSVhsv(255, 73%, 78%)
CMYKcmyk(55.1%, 73.2%, 0%, 22.4%)
CIE-LABlab(35.49, 51.71, -69.81)
CIE-LCHlch(35.49, 86.87, 306.53°)
OKLaboklab(46.68% 0.0595 -0.2009)
OKLCHoklch(46.68% 0.209 286.5)
XYZxyz(15.5829, 8.7464, 54.2822)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935C6 #A2C635
analogous
#3559C6 #5935C6 #A235C6
triadic
#5935C6 #C65935 #35C659
tetradic
#5935C6 #C63559 #A2C635 #35C6A2
square
#5935C6 #C63559 #A2C635 #35C6A2
split-complementary
#5935C6 #C6A235 #59C635
monochromatic
#2E1B65 #432896 #5935C6 #7F63D5 #A793E2

Accessibility & contrast

On white

7.64
#5935C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5935C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935C6
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935C6#FFFFFF#000000##FFFFFF
##5935C61.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004FC3
Tritanopia (blue-blind)
#295D7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5935c6;
/* rgb */ color: rgb(89, 53, 198);
/* oklch */ color: oklch(46.7% 0.209 286.5);
Tailwind
colors: {
  custom: {
    50: '#9370d8',
    500: '#5935c6',
    950: '#000000',
  },
}
SCSS
$custom: #5935c6;
$custom-light: #9370d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5935c6",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 198
  },
  "hsl": {
    "h": 254.897,
    "s": 57.769,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46679,
    "c": 0.20948,
    "h": 286.5
  },
  "luminance": 0.08747
}

Semantic roles & 50–950 ramp

primary
#5935C6
secondary
#BCCD8A
accent
#E147BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5935C6

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

Preview Lab → · Contrast checker → · Palette generator →

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