#5B306E#5B306E

#5B306E is a dark, moderate purple. Relative luminance 0.055; OKLCH L 39.3% C 0.110 H 314.5°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#5B306E
RGBrgb(91, 48, 110)
HSLhsl(282, 39%, 31%)
HSVhsv(282, 56%, 43%)
CMYKcmyk(17.3%, 56.4%, 0%, 56.9%)
CIE-LABlab(28.02, 31.07, -28.25)
CIE-LCHlch(28.02, 41.99, 317.72°)
OKLaboklab(39.25% 0.0774 -0.0788)
OKLCHoklch(39.25% 0.11 314.5)
XYZxyz(8.1854, 5.4641, 15.3723)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B306E #436E30
analogous
#3C306E #5B306E #6E3062
triadic
#5B306E #6E5B30 #306E5B
tetradic
#5B306E #6E3C30 #436E30 #30626E
square
#5B306E #6E3C30 #436E30 #30626E
split-complementary
#5B306E #626E30 #306E3C
monochromatic
#150B19 #381D43 #5B306E #7E4399 #9E5FB9

Accessibility & contrast

On white

10.03
#5B306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B306E
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B306E#FFFFFF#000000##FFFFFF
##5B306E1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214070
Deuteranopia (green-blind)
#2F436C
Tritanopia (blue-blind)
#5A3A4A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b306e;
/* rgb */ color: rgb(91, 48, 110);
/* oklch */ color: oklch(39.3% 0.110 314.5);
Tailwind
colors: {
  custom: {
    50: '#8b6a98',
    500: '#5b306e',
    950: '#000000',
  },
}
SCSS
$custom: #5b306e;
$custom-light: #8b6a98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b306e",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 281.613,
    "s": 39.241,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.11046,
    "h": 314.5
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#5B306E
secondary
#709F5B
accent
#CF597D
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5B306E

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

Preview Lab → · Contrast checker → · Palette generator →

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