#5B308F#5B308F

#5B308F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.150 H 300.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5B308F
RGBrgb(91, 48, 143)
HSLhsl(267, 50%, 37%)
HSVhsv(267, 66%, 56%)
CMYKcmyk(36.4%, 66.4%, 0%, 43.9%)
CIE-LABlab(30.21, 39.42, -45.45)
CIE-LCHlch(30.21, 60.16, 310.94°)
OKLaboklab(41.55% 0.0771 -0.1292)
OKLCHoklch(41.55% 0.15 300.8)
XYZxyz(10.3281, 6.3212, 26.6573)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B308F #648F30
analogous
#30358F #5B308F #8B308F
triadic
#5B308F #8F5B30 #308F5B
tetradic
#5B308F #8F3035 #648F30 #308F8B
square
#5B308F #8F3035 #648F30 #308F8B
split-complementary
#5B308F #8F8B30 #358F30
monochromatic
#211133 #3E2161 #5B308F #783FBD #986CCE

Accessibility & contrast

On white

9.27
#5B308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B308F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B308F#FFFFFF#000000##FFFFFF
##5B308F1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#04478D
Tritanopia (blue-blind)
#50455B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b308f;
/* rgb */ color: rgb(91, 48, 143);
/* oklch */ color: oklch(41.5% 0.150 300.8);
Tailwind
colors: {
  custom: {
    50: '#8e6bb0',
    500: '#5b308f',
    950: '#000000',
  },
}
SCSS
$custom: #5b308f;
$custom-light: #8e6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b308f",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 267.158,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.15047,
    "h": 300.8
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#5B308F
secondary
#91B566
accent
#D94F9A
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B308F

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

Preview Lab → · Contrast checker → · Palette generator →

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