#5E308D#5E308D

#5E308D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.149 H 303.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5E308D
RGBrgb(94, 48, 141)
HSLhsl(270, 49%, 37%)
HSVhsv(270, 66%, 55%)
CMYKcmyk(33.3%, 66%, 0%, 44.7%)
CIE-LABlab(30.44, 39.58, -43.82)
CIE-LCHlch(30.44, 59.05, 312.09°)
OKLaboklab(41.75% 0.0815 -0.1243)
OKLCHoklch(41.75% 0.149 303.3)
XYZxyz(10.4797, 6.4167, 25.8806)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E308D #5F8D30
analogous
#30318D #5E308D #8C308D
triadic
#5E308D #8D5E30 #308D5E
tetradic
#5E308D #8D3031 #5F8D30 #308D8C
square
#5E308D #8D3031 #5F8D30 #308D8C
split-complementary
#5E308D #8D8C30 #318D30
monochromatic
#211132 #40205F #5E308D #7C40BB #9B6BCD

Accessibility & contrast

On white

9.20
#5E308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E308D
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E308D#FFFFFF#000000##FFFFFF
##5E308D1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#12478B
Tritanopia (blue-blind)
#55445A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e308d;
/* rgb */ color: rgb(94, 48, 141);
/* oklch */ color: oklch(41.8% 0.149 303.3);
Tailwind
colors: {
  custom: {
    50: '#8f6baf',
    500: '#5e308d',
    950: '#000000',
  },
}
SCSS
$custom: #5e308d;
$custom-light: #8f6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e308d",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 269.677,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41754,
    "c": 0.14869,
    "h": 303.3
  },
  "luminance": 0.06417
}

Semantic roles & 50–950 ramp

primary
#5E308D
secondary
#8DB465
accent
#D94F95
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E308D

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

Preview Lab → · Contrast checker → · Palette generator →

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