#5931CF#5931CF

#5931CF is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.224 H 285.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5931CF
RGBrgb(89, 49, 207)
HSLhsl(255, 62%, 50%)
HSVhsv(255, 76%, 81%)
CMYKcmyk(57%, 76.3%, 0%, 18.8%)
CIE-LABlab(35.64, 56.19, -74.79)
CIE-LCHlch(35.64, 93.55, 306.92°)
OKLaboklab(47.04% 0.0601 -0.2154)
OKLCHoklch(47.04% 0.224 285.6)
XYZxyz(16.4772, 8.8245, 59.8544)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931CF #A7CF31
analogous
#3158CF #5931CF #A831CF
triadic
#5931CF #CF5931 #31CF59
tetradic
#5931CF #CF3158 #A7CF31 #31CFA8
square
#5931CF #CF3158 #A7CF31 #31CFA8
split-complementary
#5931CF #CFA831 #58CF31
monochromatic
#2E196C #43259E #5931CF #8163DB #A994E6

Accessibility & contrast

On white

7.59
#5931CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5931CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931CF
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931CF#FFFFFF#000000##FFFFFF
##5931CF1.007.592.767.59
#FFFFFF7.591.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#004FCC
Tritanopia (blue-blind)
#1C5E7F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5931cf;
/* rgb */ color: rgb(89, 49, 207);
/* oklch */ color: oklch(47.0% 0.224 285.6);
Tailwind
colors: {
  custom: {
    50: '#956edf',
    500: '#5931cf',
    950: '#000000',
  },
}
SCSS
$custom: #5931cf;
$custom-light: #956edf;
$custom-dark: #000000;
JSON
{
  "hex": "#5931cf",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 255.19,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4704,
    "c": 0.22364,
    "h": 285.6
  },
  "luminance": 0.08825
}

Semantic roles & 50–950 ramp

primary
#5931CF
secondary
#BFD18B
accent
#E543BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5931CF

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

Preview Lab → · Contrast checker → · Palette generator →

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