#5C308E#5C308E

#5C308E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.149 H 301.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5C308E
RGBrgb(92, 48, 142)
HSLhsl(268, 49%, 37%)
HSVhsv(268, 66%, 56%)
CMYKcmyk(35.2%, 66.2%, 0%, 44.3%)
CIE-LABlab(30.26, 39.38, -44.74)
CIE-LCHlch(30.26, 59.61, 311.36°)
OKLaboklab(41.59% 0.0786 -0.1271)
OKLCHoklch(41.59% 0.149 301.7)
XYZxyz(10.3519, 6.3422, 26.2647)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C308E #628E30
analogous
#30338E #5C308E #8B308E
triadic
#5C308E #8E5C30 #308E5C
tetradic
#5C308E #8E3033 #628E30 #308E8B
square
#5C308E #8E3033 #628E30 #308E8B
split-complementary
#5C308E #8E8B30 #338E30
monochromatic
#211133 #3E2160 #5C308E #7A3FBC #996BCD

Accessibility & contrast

On white

9.26
#5C308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C308E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C308E#FFFFFF#000000##FFFFFF
##5C308E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#0A478C
Tritanopia (blue-blind)
#52455A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c308e;
/* rgb */ color: rgb(92, 48, 142);
/* oklch */ color: oklch(41.6% 0.149 301.7);
Tailwind
colors: {
  custom: {
    50: '#8e6bb0',
    500: '#5c308e',
    950: '#000000',
  },
}
SCSS
$custom: #5c308e;
$custom-light: #8e6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c308e",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 268.085,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4159,
    "c": 0.14946,
    "h": 301.7
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#5C308E
secondary
#8FB465
accent
#D94F98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5C308E

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

Preview Lab → · Contrast checker → · Palette generator →

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