#5B439D#5B439D

#5B439D is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.6% C 0.140 H 292.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5B439D
RGBrgb(91, 67, 157)
HSLhsl(256, 40%, 44%)
HSVhsv(256, 57%, 62%)
CMYKcmyk(42%, 57.3%, 0%, 38.4%)
CIE-LABlab(35.35, 32.31, -45.70)
CIE-LCHlch(35.35, 55.97, 305.26°)
OKLaboklab(45.61% 0.0531 -0.13)
OKLCHoklch(45.61% 0.14 292.2)
XYZxyz(12.4057, 8.6724, 32.9121)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B439D #859D43
analogous
#43589D #5B439D #88439D
triadic
#5B439D #9D5B43 #439D5B
tetradic
#5B439D #9D4358 #859D43 #439D88
square
#5B439D #9D4358 #859D43 #439D88
split-complementary
#5B439D #9D8843 #589D43
monochromatic
#291E47 #423172 #5B439D #7A61BC #9E8CCE

Accessibility & contrast

On white

7.68
#5B439D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5B439D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B439D
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B439D#FFFFFF#000000##FFFFFF
##5B439D1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1254A0
Deuteranopia (green-blind)
#19519B
Tritanopia (blue-blind)
#495669
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b439d;
/* rgb */ color: rgb(91, 67, 157);
/* oklch */ color: oklch(45.6% 0.140 292.2);
Tailwind
colors: {
  custom: {
    50: '#8e78ba',
    500: '#5b439d',
    950: '#000000',
  },
}
SCSS
$custom: #5b439d;
$custom-light: #8e78ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b439d",
  "rgb": {
    "r": 91,
    "g": 67,
    "b": 157
  },
  "hsl": {
    "h": 256,
    "s": 40.179,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45612,
    "c": 0.1404,
    "h": 292.2
  },
  "luminance": 0.08673
}

Semantic roles & 50–950 ramp

primary
#5B439D
secondary
#ABB983
accent
#D058B0
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5B439D

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

Preview Lab → · Contrast checker → · Palette generator →

#5B439D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva