#5C307A#5C307A

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

Color values

HEX#5C307A
RGBrgb(92, 48, 122)
HSLhsl(276, 44%, 33%)
HSVhsv(276, 61%, 48%)
CMYKcmyk(24.6%, 60.7%, 0%, 52.2%)
CIE-LABlab(28.89, 34.27, -34.47)
CIE-LCHlch(28.89, 48.61, 314.83°)
OKLaboklab(40.16% 0.0794 -0.097)
OKLCHoklch(40.16% 0.125 309.3)
XYZxyz(8.9828, 5.7945, 19.0538)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C307A #4E7A30
analogous
#37307A #5C307A #7A3073
triadic
#5C307A #7A5C30 #307A5C
tetradic
#5C307A #7A3730 #4E7A30 #30737A
square
#5C307A #7A3730 #4E7A30 #30737A
split-complementary
#5C307A #737A30 #307A37
monochromatic
#1A0D22 #3B1F4E #5C307A #7D41A6 #9B63C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C307A#FFFFFF#000000##FFFFFF
##5C307A1.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)
#15427C
Deuteranopia (green-blind)
#274578
Tritanopia (blue-blind)
#583E50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c307a;
/* rgb */ color: rgb(92, 48, 122);
/* oklch */ color: oklch(40.2% 0.125 309.3);
Tailwind
colors: {
  custom: {
    50: '#8d6ba1',
    500: '#5c307a',
    950: '#000000',
  },
}
SCSS
$custom: #5c307a;
$custom-light: #8d6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c307a",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 275.676,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40156,
    "c": 0.12534,
    "h": 309.3
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#5C307A
secondary
#7CA95D
accent
#D35588
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5C307A

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

Preview Lab → · Contrast checker → · Palette generator →

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