#5931C2#5931C2

#5931C2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.209 H 287.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5931C2
RGBrgb(89, 49, 194)
HSLhsl(257, 60%, 48%)
HSVhsv(257, 75%, 76%)
CMYKcmyk(54.1%, 74.7%, 0%, 23.9%)
CIE-LABlab(34.43, 52.56, -69.21)
CIE-LCHlch(34.43, 86.91, 307.21°)
OKLaboklab(45.82% 0.0635 -0.1991)
OKLCHoklch(45.82% 0.209 287.7)
XYZxyz(14.9529, 8.2147, 51.8262)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931C2 #9AC231
analogous
#3151C2 #5931C2 #A231C2
triadic
#5931C2 #C25931 #31C259
tetradic
#5931C2 #C23151 #9AC231 #31C2A2
square
#5931C2 #C23151 #9AC231 #31C2A2
split-complementary
#5931C2 #C2A231 #51C231
monochromatic
#2C1860 #432591 #5931C2 #7D5BD6 #A38CE2

Accessibility & contrast

On white

7.94
#5931C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5931C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931C2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931C2#FFFFFF#000000##FFFFFF
##5931C21.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#2D5977
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5931c2;
/* rgb */ color: rgb(89, 49, 194);
/* oklch */ color: oklch(45.8% 0.209 287.7);
Tailwind
colors: {
  custom: {
    50: '#936ed6',
    500: '#5931c2',
    950: '#000000',
  },
}
SCSS
$custom: #5931c2;
$custom-light: #936ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#5931c2",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 256.552,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45817,
    "c": 0.20899,
    "h": 287.7
  },
  "luminance": 0.08216
}

Semantic roles & 50–950 ramp

primary
#5931C2
secondary
#B8CC83
accent
#E345B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5931C2

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

Preview Lab → · Contrast checker → · Palette generator →

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