#5937CF#5937CF

#5937CF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.218 H 284.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5937CF
RGBrgb(89, 55, 207)
HSLhsl(253, 61%, 51%)
HSVhsv(253, 73%, 81%)
CMYKcmyk(57%, 73.4%, 0%, 18.8%)
CIE-LABlab(36.67, 53.28, -73.11)
CIE-LCHlch(36.67, 90.46, 306.08°)
OKLaboklab(47.76% 0.0559 -0.2105)
OKLCHoklch(47.76% 0.218 284.9)
XYZxyz(16.7451, 9.3602, 59.9437)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937CF #ADCF37
analogous
#3761CF #5937CF #A537CF
triadic
#5937CF #CF5937 #37CF59
tetradic
#5937CF #CF3761 #ADCF37 #37CFA5
square
#5937CF #CF3761 #ADCF37 #37CFA5
split-complementary
#5937CF #CFA537 #61CF37
monochromatic
#2E1B71 #4227A2 #5937CF #8268DB #AB9AE7

Accessibility & contrast

On white

7.31
#5937CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5937CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937CF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937CF#FFFFFF#000000##FFFFFF
##5937CF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5937cf;
/* rgb */ color: rgb(89, 55, 207);
/* oklch */ color: oklch(47.8% 0.218 284.9);
Tailwind
colors: {
  custom: {
    50: '#9472df',
    500: '#5937cf',
    950: '#000000',
  },
}
SCSS
$custom: #5937cf;
$custom-light: #9472df;
$custom-dark: #000000;
JSON
{
  "hex": "#5937cf",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 253.421,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.4776,
    "c": 0.21783,
    "h": 284.9
  },
  "luminance": 0.09361
}

Semantic roles & 50–950 ramp

primary
#5937CF
secondary
#C3D28F
accent
#E443C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5937CF

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

Preview Lab → · Contrast checker → · Palette generator →

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