#5B307C#5B307C

#5B307C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.127 H 307.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5B307C
RGBrgb(91, 48, 124)
HSLhsl(274, 44%, 34%)
HSVhsv(274, 61%, 49%)
CMYKcmyk(26.6%, 61.3%, 0%, 51.4%)
CIE-LABlab(28.89, 34.50, -35.75)
CIE-LCHlch(28.89, 49.68, 313.98°)
OKLaboklab(40.17% 0.078 -0.1008)
OKLCHoklch(40.17% 0.127 307.8)
XYZxyz(9.0087, 5.7934, 19.7085)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B307C #517C30
analogous
#35307C #5B307C #7C3077
triadic
#5B307C #7C5B30 #307C5B
tetradic
#5B307C #7C3530 #517C30 #30777C
square
#5B307C #7C3530 #517C30 #30777C
split-complementary
#5B307C #777C30 #307C35
monochromatic
#1A0E24 #3B1F50 #5B307C #7B41A8 #9964C3

Accessibility & contrast

On white

9.73
#5B307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B307C
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B307C#FFFFFF#000000##FFFFFF
##5B307C1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427E
Deuteranopia (green-blind)
#24457A
Tritanopia (blue-blind)
#563F51
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b307c;
/* rgb */ color: rgb(91, 48, 124);
/* oklch */ color: oklch(40.2% 0.127 307.8);
Tailwind
colors: {
  custom: {
    50: '#8c6ba2',
    500: '#5b307c',
    950: '#000000',
  },
}
SCSS
$custom: #5b307c;
$custom-light: #8c6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b307c",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 273.947,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40167,
    "c": 0.12742,
    "h": 307.8
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B307C

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

Preview Lab → · Contrast checker → · Palette generator →

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