#5E308C#5E308C

#5E308C is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.148 H 303.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5E308C
RGBrgb(94, 48, 140)
HSLhsl(270, 49%, 37%)
HSVhsv(270, 66%, 55%)
CMYKcmyk(32.9%, 65.7%, 0%, 45.1%)
CIE-LABlab(30.37, 39.33, -43.32)
CIE-LCHlch(30.37, 58.51, 312.23°)
OKLaboklab(41.68% 0.0816 -0.1229)
OKLCHoklch(41.68% 0.148 303.6)
XYZxyz(10.4056, 6.3871, 25.4905)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E308C #5E8C30
analogous
#30308C #5E308C #8C308C
triadic
#5E308C #8C5E30 #308C5E
tetradic
#5E308C #8C3030 #5E8C30 #308C8C
square
#5E308C #8C3030 #5E8C30 #308C8C
split-complementary
#5E308C #8C8C30 #308C30
monochromatic
#211131 #3F205E #5E308C #7D40BA #9B6ACC

Accessibility & contrast

On white

9.22
#5E308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5E308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E308C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E308C#FFFFFF#000000##FFFFFF
##5E308C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#14478A
Tritanopia (blue-blind)
#554459
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e308c;
/* rgb */ color: rgb(94, 48, 140);
/* oklch */ color: oklch(41.7% 0.148 303.6);
Tailwind
colors: {
  custom: {
    50: '#8f6bae',
    500: '#5e308c',
    950: '#000000',
  },
}
SCSS
$custom: #5e308c;
$custom-light: #8f6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e308c",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 270,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41679,
    "c": 0.14751,
    "h": 303.6
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#5E308C
secondary
#8CB364
accent
#D84F94
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E308C

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

Preview Lab → · Contrast checker → · Palette generator →

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