#5931CA#5931CA

#5931CA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.218 H 286.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5931CA
RGBrgb(89, 49, 202)
HSLhsl(256, 61%, 49%)
HSVhsv(256, 76%, 79%)
CMYKcmyk(55.9%, 75.7%, 0%, 20.8%)
CIE-LABlab(35.17, 54.80, -72.67)
CIE-LCHlch(35.17, 91.01, 307.02°)
OKLaboklab(46.57% 0.0614 -0.2092)
OKLCHoklch(46.57% 0.218 286.4)
XYZxyz(15.8756, 8.5838, 56.6860)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931CA #A2CA31
analogous
#3156CA #5931CA #A631CA
triadic
#5931CA #CA5931 #31CA59
tetradic
#5931CA #CA3156 #A2CA31 #31CAA6
square
#5931CA #CA3156 #A2CA31 #31CAA6
split-complementary
#5931CA #CAA631 #56CA31
monochromatic
#2E1967 #432599 #5931CA #7F60D8 #A791E4

Accessibility & contrast

On white

7.73
#5931CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5931CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931CA
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931CA#FFFFFF#000000##FFFFFF
##5931CA1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#245C7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5931ca;
/* rgb */ color: rgb(89, 49, 202);
/* oklch */ color: oklch(46.6% 0.218 286.4);
Tailwind
colors: {
  custom: {
    50: '#946edb',
    500: '#5931ca',
    950: '#000000',
  },
}
SCSS
$custom: #5931ca;
$custom-light: #946edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5931ca",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 255.686,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46565,
    "c": 0.21804,
    "h": 286.4
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#5931CA
secondary
#BCCF88
accent
#E444BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5931CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5931CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva