#5931B2#5931B2

#5931B2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.191 H 290.7°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5931B2
RGBrgb(89, 49, 178)
HSLhsl(259, 57%, 45%)
HSVhsv(259, 72%, 70%)
CMYKcmyk(50%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.99, 48.09, -62.11)
CIE-LCHlch(32.99, 78.55, 307.75°)
OKLaboklab(44.37% 0.0673 -0.1783)
OKLCHoklch(44.37% 0.191 290.7)
XYZxyz(13.2517, 7.5343, 42.8669)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931B2 #8AB231
analogous
#3149B2 #5931B2 #9A31B2
triadic
#5931B2 #B25931 #31B259
tetradic
#5931B2 #B23149 #8AB231 #31B29A
square
#5931B2 #B23149 #8AB231 #31B29A
split-complementary
#5931B2 #B29A31 #49B231
monochromatic
#291752 #412482 #5931B2 #7851CF #9D81DC

Accessibility & contrast

On white

8.38
#5931B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5931B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931B2
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931B2#FFFFFF#000000##FFFFFF
##5931B21.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#3B536E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5931b2;
/* rgb */ color: rgb(89, 49, 178);
/* oklch */ color: oklch(44.4% 0.191 290.7);
Tailwind
colors: {
  custom: {
    50: '#906dca',
    500: '#5931b2',
    950: '#000000',
  },
}
SCSS
$custom: #5931b2;
$custom-light: #906dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5931b2",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 258.605,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.19057,
    "h": 290.7
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

primary
#5931B2
secondary
#AEC579
accent
#E048B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5931B2

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

Preview Lab → · Contrast checker → · Palette generator →

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