#5B306D#5B306D

#5B306D is a dark, moderate purple. Relative luminance 0.054; OKLCH L 39.2% C 0.109 H 315.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5B306D
RGBrgb(91, 48, 109)
HSLhsl(282, 39%, 31%)
HSVhsv(282, 56%, 43%)
CMYKcmyk(16.5%, 56%, 0%, 57.3%)
CIE-LABlab(27.96, 30.83, -27.70)
CIE-LCHlch(27.96, 41.45, 318.06°)
OKLaboklab(39.19% 0.0773 -0.0772)
OKLCHoklch(39.19% 0.109 315)
XYZxyz(8.1312, 5.4424, 15.0872)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B306D #426D30
analogous
#3C306D #5B306D #6D3060
triadic
#5B306D #6D5B30 #306D5B
tetradic
#5B306D #6D3C30 #426D30 #30606D
square
#5B306D #6D3C30 #426D30 #30606D
split-complementary
#5B306D #606D30 #306D3C
monochromatic
#140B18 #381D43 #5B306D #7E4397 #9E5FB8

Accessibility & contrast

On white

10.06
#5B306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B306D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B306D
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B306D#FFFFFF#000000##FFFFFF
##5B306D1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6F
Deuteranopia (green-blind)
#30436B
Tritanopia (blue-blind)
#5A3A49
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b306d;
/* rgb */ color: rgb(91, 48, 109);
/* oklch */ color: oklch(39.2% 0.109 315.0);
Tailwind
colors: {
  custom: {
    50: '#8b6a97',
    500: '#5b306d',
    950: '#000000',
  },
}
SCSS
$custom: #5b306d;
$custom-light: #8b6a97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b306d",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 282.295,
    "s": 38.854,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39189,
    "c": 0.10926,
    "h": 315
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#5B306D
secondary
#6F9E5B
accent
#CF597C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5B306D

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

Preview Lab → · Contrast checker → · Palette generator →

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