#5B307B#5B307B

#5B307B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.1% C 0.126 H 308.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5B307B
RGBrgb(91, 48, 123)
HSLhsl(274, 44%, 34%)
HSVhsv(274, 61%, 48%)
CMYKcmyk(26%, 61%, 0%, 51.8%)
CIE-LABlab(28.82, 34.25, -35.22)
CIE-LCHlch(28.82, 49.13, 314.20°)
OKLaboklab(40.1% 0.078 -0.0992)
OKLCHoklch(40.1% 0.126 308.2)
XYZxyz(8.9458, 5.7682, 19.3772)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B307B #507B30
analogous
#35307B #5B307B #7B3075
triadic
#5B307B #7B5B30 #307B5B
tetradic
#5B307B #7B3530 #507B30 #30757B
square
#5B307B #7B3530 #507B30 #30757B
split-complementary
#5B307B #757B30 #307B35
monochromatic
#1A0E23 #3A1F4F #5B307B #7C41A7 #9A63C2

Accessibility & contrast

On white

9.75
#5B307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B307B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B307B#FFFFFF#000000##FFFFFF
##5B307B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427D
Deuteranopia (green-blind)
#254479
Tritanopia (blue-blind)
#563E50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b307b;
/* rgb */ color: rgb(91, 48, 123);
/* oklch */ color: oklch(40.1% 0.126 308.2);
Tailwind
colors: {
  custom: {
    50: '#8c6aa2',
    500: '#5b307b',
    950: '#000000',
  },
}
SCSS
$custom: #5b307b;
$custom-light: #8c6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b307b",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 274.4,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40098,
    "c": 0.12621,
    "h": 308.2
  },
  "luminance": 0.05768
}

Semantic roles & 50–950 ramp

primary
#5B307B
secondary
#7EA95D
accent
#D4548B
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B307B

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

Preview Lab → · Contrast checker → · Palette generator →

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