#5E308B#5E308B

#5E308B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.146 H 303.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5E308B
RGBrgb(94, 48, 139)
HSLhsl(270, 49%, 37%)
HSVhsv(270, 65%, 55%)
CMYKcmyk(32.4%, 65.5%, 0%, 45.5%)
CIE-LABlab(30.30, 39.07, -42.81)
CIE-LCHlch(30.30, 57.96, 312.38°)
OKLaboklab(41.61% 0.0817 -0.1214)
OKLCHoklch(41.61% 0.146 303.9)
XYZxyz(10.3322, 6.3577, 25.1039)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E308B #5D8B30
analogous
#31308B #5E308B #8B308B
triadic
#5E308B #8B5E30 #308B5E
tetradic
#5E308B #8B3130 #5D8B30 #308B8B
square
#5E308B #8B3130 #5D8B30 #308B8B
split-complementary
#5E308B #8B8B30 #308B31
monochromatic
#201130 #3F205E #5E308B #7D40B8 #9B6ACC

Accessibility & contrast

On white

9.24
#5E308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E308B
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E308B#FFFFFF#000000##FFFFFF
##5E308B1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#154789
Tritanopia (blue-blind)
#564359
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e308b;
/* rgb */ color: rgb(94, 48, 139);
/* oklch */ color: oklch(41.6% 0.146 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f6bad',
    500: '#5e308b',
    950: '#000000',
  },
}
SCSS
$custom: #5e308b;
$custom-light: #8f6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e308b",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 270.33,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41605,
    "c": 0.14632,
    "h": 303.9
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#5E308B
secondary
#8BB364
accent
#D85093
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E308B

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

Preview Lab → · Contrast checker → · Palette generator →

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