#5C307B#5C307B

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

Color values

HEX#5C307B
RGBrgb(92, 48, 123)
HSLhsl(275, 44%, 34%)
HSVhsv(275, 61%, 48%)
CMYKcmyk(25.2%, 61%, 0%, 51.8%)
CIE-LABlab(28.95, 34.52, -35.00)
CIE-LCHlch(28.95, 49.16, 314.60°)
OKLaboklab(40.22% 0.0794 -0.0985)
OKLCHoklch(40.22% 0.127 308.9)
XYZxyz(9.0450, 5.8194, 19.3818)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C307B #4F7B30
analogous
#36307B #5C307B #7B3074
triadic
#5C307B #7B5C30 #307B5C
tetradic
#5C307B #7B3630 #4F7B30 #30747B
square
#5C307B #7B3630 #4F7B30 #30747B
split-complementary
#5C307B #747B30 #307B36
monochromatic
#1A0E23 #3B1F4F #5C307B #7D41A7 #9B63C2

Accessibility & contrast

On white

9.71
#5C307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C307B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C307B#FFFFFF#000000##FFFFFF
##5C307B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427D
Deuteranopia (green-blind)
#264579
Tritanopia (blue-blind)
#583E50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c307b;
/* rgb */ color: rgb(92, 48, 123);
/* oklch */ color: oklch(40.2% 0.127 308.9);
Tailwind
colors: {
  custom: {
    50: '#8d6ba2',
    500: '#5c307b',
    950: '#000000',
  },
}
SCSS
$custom: #5c307b;
$custom-light: #8d6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c307b",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 275.2,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.12655,
    "h": 308.9
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#5C307B
secondary
#7DA95D
accent
#D45489
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5C307B

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

Preview Lab → · Contrast checker → · Palette generator →

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