#5C308D#5C308D

#5C308D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.148 H 302.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5C308D
RGBrgb(92, 48, 141)
HSLhsl(268, 49%, 37%)
HSVhsv(268, 66%, 55%)
CMYKcmyk(34.8%, 66%, 0%, 44.7%)
CIE-LABlab(30.19, 39.12, -44.24)
CIE-LCHlch(30.19, 59.06, 311.49°)
OKLaboklab(41.52% 0.0787 -0.1257)
OKLCHoklch(41.52% 0.148 302.1)
XYZxyz(10.2772, 6.3123, 25.8711)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C308D #618D30
analogous
#30338D #5C308D #8B308D
triadic
#5C308D #8D5C30 #308D5C
tetradic
#5C308D #8D3033 #618D30 #308D8B
square
#5C308D #8D3033 #618D30 #308D8B
split-complementary
#5C308D #8D8B30 #338D30
monochromatic
#201132 #3E205F #5C308D #7A40BB #996BCD

Accessibility & contrast

On white

9.28
#5C308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5C308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C308D
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C308D#FFFFFF#000000##FFFFFF
##5C308D1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#0D478B
Tritanopia (blue-blind)
#52445A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c308d;
/* rgb */ color: rgb(92, 48, 141);
/* oklch */ color: oklch(41.5% 0.148 302.1);
Tailwind
colors: {
  custom: {
    50: '#8e6baf',
    500: '#5c308d',
    950: '#000000',
  },
}
SCSS
$custom: #5c308d;
$custom-light: #8e6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c308d",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 268.387,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41515,
    "c": 0.14826,
    "h": 302.1
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#5C308D
secondary
#8FB465
accent
#D94F98
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5C308D

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

Preview Lab → · Contrast checker → · Palette generator →

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