#5B307A#5B307A

#5B307A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.125 H 308.6°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5B307A
RGBrgb(91, 48, 122)
HSLhsl(275, 44%, 33%)
HSVhsv(275, 61%, 48%)
CMYKcmyk(25.4%, 60.7%, 0%, 52.2%)
CIE-LABlab(28.76, 34.00, -34.69)
CIE-LCHlch(28.76, 48.58, 314.42°)
OKLaboklab(40.03% 0.078 -0.0977)
OKLCHoklch(40.03% 0.125 308.6)
XYZxyz(8.8835, 5.7433, 19.0492)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B307A #4F7A30
analogous
#36307A #5B307A #7A3074
triadic
#5B307A #7A5B30 #307A5B
tetradic
#5B307A #7A3630 #4F7A30 #30747A
square
#5B307A #7A3630 #4F7A30 #30747A
split-complementary
#5B307A #747A30 #307A36
monochromatic
#190D22 #3A1F4E #5B307A #7C41A6 #9A63C2

Accessibility & contrast

On white

9.77
#5B307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B307A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B307A#FFFFFF#000000##FFFFFF
##5B307A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427C
Deuteranopia (green-blind)
#264478
Tritanopia (blue-blind)
#573E50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b307a;
/* rgb */ color: rgb(91, 48, 122);
/* oklch */ color: oklch(40.0% 0.125 308.6);
Tailwind
colors: {
  custom: {
    50: '#8c6aa1',
    500: '#5b307a',
    950: '#000000',
  },
}
SCSS
$custom: #5b307a;
$custom-light: #8c6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b307a",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 274.865,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.12499,
    "h": 308.6
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#5B307A
secondary
#7DA95D
accent
#D3558A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5B307A

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

Preview Lab → · Contrast checker → · Palette generator →

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