#5B459D#5B459D

#5B459D is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.0% C 0.137 H 291.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5B459D
RGBrgb(91, 69, 157)
HSLhsl(255, 39%, 44%)
HSVhsv(255, 56%, 62%)
CMYKcmyk(42%, 56.1%, 0%, 38.4%)
CIE-LABlab(35.82, 31.09, -44.94)
CIE-LCHlch(35.82, 54.64, 304.68°)
OKLaboklab(45.96% 0.0505 -0.1277)
OKLCHoklch(45.96% 0.137 291.6)
XYZxyz(12.5266, 8.9143, 32.9524)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B459D #879D45
analogous
#455B9D #5B459D #87459D
triadic
#5B459D #9D5B45 #459D5B
tetradic
#5B459D #9D455B #879D45 #459D87
square
#5B459D #9D455B #879D45 #459D87
split-complementary
#5B459D #9D8745 #5B9D45
monochromatic
#2A2048 #423272 #5B459D #7A64BB #9E8FCE

Accessibility & contrast

On white

7.55
#5B459D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5B459D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B459D
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B459D#FFFFFF#000000##FFFFFF
##5B459D1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1956A0
Deuteranopia (green-blind)
#1E529B
Tritanopia (blue-blind)
#49586A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b459d;
/* rgb */ color: rgb(91, 69, 157);
/* oklch */ color: oklch(46.0% 0.137 291.6);
Tailwind
colors: {
  custom: {
    50: '#8e79ba',
    500: '#5b459d',
    950: '#000000',
  },
}
SCSS
$custom: #5b459d;
$custom-light: #8e79ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b459d",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 157
  },
  "hsl": {
    "h": 255,
    "s": 38.938,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45961,
    "c": 0.13738,
    "h": 291.6
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#5B459D
secondary
#ACB985
accent
#CF59B1
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0D0912
muted
#7D7B81

Preview Lab

Preview with #5B459D

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

Preview Lab → · Contrast checker → · Palette generator →

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