#5931C8#5931C8

#5931C8 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.4% C 0.216 H 286.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5931C8
RGBrgb(89, 49, 200)
HSLhsl(256, 61%, 49%)
HSVhsv(256, 76%, 78%)
CMYKcmyk(55.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(34.98, 54.24, -71.81)
CIE-LCHlch(34.98, 89.99, 307.06°)
OKLaboklab(46.38% 0.062 -0.2067)
OKLCHoklch(46.38% 0.216 286.7)
XYZxyz(15.6403, 8.4897, 55.4469)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931C8 #A0C831
analogous
#3155C8 #5931C8 #A531C8
triadic
#5931C8 #C85931 #31C859
tetradic
#5931C8 #C83155 #A0C831 #31C8A5
square
#5931C8 #C83155 #A0C831 #31C8A5
split-complementary
#5931C8 #C8A531 #55C831
monochromatic
#2D1966 #432597 #5931C8 #7F5FD8 #A690E4

Accessibility & contrast

On white

7.78
#5931C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5931C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931C8
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931C8#FFFFFF#000000##FFFFFF
##5931C81.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#265C7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5931c8;
/* rgb */ color: rgb(89, 49, 200);
/* oklch */ color: oklch(46.4% 0.216 286.7);
Tailwind
colors: {
  custom: {
    50: '#946eda',
    500: '#5931c8',
    950: '#000000',
  },
}
SCSS
$custom: #5931c8;
$custom-light: #946eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5931c8",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 255.894,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46377,
    "c": 0.21578,
    "h": 286.7
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#5931C8
secondary
#BBCE86
accent
#E444B9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5931C8

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

Preview Lab → · Contrast checker → · Palette generator →

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