#5935CF#5935CF

#5935CF is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.220 H 285.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5935CF
RGBrgb(89, 53, 207)
HSLhsl(254, 62%, 51%)
HSVhsv(254, 74%, 81%)
CMYKcmyk(57%, 74.4%, 0%, 18.8%)
CIE-LABlab(36.32, 54.27, -73.69)
CIE-LCHlch(36.32, 91.52, 306.37°)
OKLaboklab(47.51% 0.0573 -0.2122)
OKLCHoklch(47.51% 0.22 285.1)
XYZxyz(16.6520, 9.1740, 59.9127)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935CF #ABCF35
analogous
#355ECF #5935CF #A635CF
triadic
#5935CF #CF5935 #35CF59
tetradic
#5935CF #CF355E #ABCF35 #35CFA6
square
#5935CF #CF355E #ABCF35 #35CFA6
split-complementary
#5935CF #CFA635 #5ECF35
monochromatic
#2E1A6F #4326A1 #5935CF #8266DB #AA98E7

Accessibility & contrast

On white

7.41
#5935CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5935CF
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935CF#FFFFFF#000000##FFFFFF
##5935CF1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#1B6080
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5935cf;
/* rgb */ color: rgb(89, 53, 207);
/* oklch */ color: oklch(47.5% 0.220 285.1);
Tailwind
colors: {
  custom: {
    50: '#9570df',
    500: '#5935cf',
    950: '#000000',
  },
}
SCSS
$custom: #5935cf;
$custom-light: #9570df;
$custom-dark: #000000;
JSON
{
  "hex": "#5935cf",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 207
  },
  "hsl": {
    "h": 254.026,
    "s": 61.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47512,
    "c": 0.21982,
    "h": 285.1
  },
  "luminance": 0.09175
}

Semantic roles & 50–950 ramp

primary
#5935CF
secondary
#C2D28E
accent
#E543BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5935CF

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

Preview Lab → · Contrast checker → · Palette generator →

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