#5B308C#5B308C

#5B308C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.147 H 301.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5B308C
RGBrgb(91, 48, 140)
HSLhsl(268, 49%, 37%)
HSVhsv(268, 66%, 55%)
CMYKcmyk(35%, 65.7%, 0%, 45.1%)
CIE-LABlab(29.99, 38.63, -43.95)
CIE-LCHlch(29.99, 58.51, 311.31°)
OKLaboklab(41.32% 0.0773 -0.1248)
OKLCHoklch(41.32% 0.147 301.8)
XYZxyz(10.1038, 6.2315, 25.4763)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B308C #618C30
analogous
#30338C #5B308C #89308C
triadic
#5B308C #8C5B30 #308C5B
tetradic
#5B308C #8C3033 #618C30 #308C89
square
#5B308C #8C3033 #618C30 #308C89
split-complementary
#5B308C #8C8930 #338C30
monochromatic
#201131 #3D205E #5B308C #7940BA #986ACC

Accessibility & contrast

On white

9.35
#5B308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5B308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B308C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B308C#FFFFFF#000000##FFFFFF
##5B308C1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#0D468A
Tritanopia (blue-blind)
#514459
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b308c;
/* rgb */ color: rgb(91, 48, 140);
/* oklch */ color: oklch(41.3% 0.147 301.8);
Tailwind
colors: {
  custom: {
    50: '#8d6bae',
    500: '#5b308c',
    950: '#000000',
  },
}
SCSS
$custom: #5b308c;
$custom-light: #8d6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b308c",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 268.043,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41321,
    "c": 0.14685,
    "h": 301.8
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#5B308C
secondary
#8EB364
accent
#D84F98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B308C

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

Preview Lab → · Contrast checker → · Palette generator →

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