#5931D4#5931D4

#5931D4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.229 H 284.8°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5931D4
RGBrgb(89, 49, 212)
HSLhsl(255, 65%, 51%)
HSVhsv(255, 77%, 83%)
CMYKcmyk(58%, 76.9%, 0%, 16.9%)
CIE-LABlab(36.12, 57.58, -76.90)
CIE-LCHlch(36.12, 96.07, 306.83°)
OKLaboklab(47.52% 0.0587 -0.2216)
OKLCHoklch(47.52% 0.229 284.8)
XYZxyz(17.0982, 9.0729, 63.1249)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931D4 #ACD431
analogous
#315AD4 #5931D4 #AA31D4
triadic
#5931D4 #D45931 #31D459
tetradic
#5931D4 #D4315A #ACD431 #31D4AA
square
#5931D4 #D4315A #ACD431 #31D4AA
split-complementary
#5931D4 #D4AA31 #5AD431
monochromatic
#2E1873 #4323A5 #5931D4 #8264DF #AB96E9

Accessibility & contrast

On white

7.46
#5931D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5931D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931D4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931D4#FFFFFF#000000##FFFFFF
##5931D41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#0050D1
Tritanopia (blue-blind)
#106082
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5931d4;
/* rgb */ color: rgb(89, 49, 212);
/* oklch */ color: oklch(47.5% 0.229 284.8);
Tailwind
colors: {
  custom: {
    50: '#966ee3',
    500: '#5931d4',
    950: '#000000',
  },
}
SCSS
$custom: #5931d4;
$custom-light: #966ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#5931d4",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 254.724,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4752,
    "c": 0.22921,
    "h": 284.8
  },
  "luminance": 0.09074
}

Semantic roles & 50–950 ramp

primary
#5931D4
secondary
#C3D48C
accent
#E83FBF
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5931D4

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

Preview Lab → · Contrast checker → · Palette generator →

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