#5E308F#5E308F

#5E308F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.151 H 302.6°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5E308F
RGBrgb(94, 48, 143)
HSLhsl(269, 50%, 37%)
HSVhsv(269, 66%, 56%)
CMYKcmyk(34.3%, 66.4%, 0%, 43.9%)
CIE-LABlab(30.58, 40.10, -44.82)
CIE-LCHlch(30.58, 60.14, 311.82°)
OKLaboklab(41.9% 0.0814 -0.1273)
OKLCHoklch(41.9% 0.151 302.6)
XYZxyz(10.6298, 6.4767, 26.6714)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E308F #618F30
analogous
#30318F #5E308F #8E308F
triadic
#5E308F #8F5E30 #308F5E
tetradic
#5E308F #8F3031 #618F30 #308F8E
square
#5E308F #8F3031 #618F30 #308F8E
split-complementary
#5E308F #8F8E30 #318F30
monochromatic
#221133 #402161 #5E308F #7C3FBD #9B6CCE

Accessibility & contrast

On white

9.15
#5E308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5E308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E308F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E308F#FFFFFF#000000##FFFFFF
##5E308F1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#0D488D
Tritanopia (blue-blind)
#54455B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e308f;
/* rgb */ color: rgb(94, 48, 143);
/* oklch */ color: oklch(41.9% 0.151 302.6);
Tailwind
colors: {
  custom: {
    50: '#906bb0',
    500: '#5e308f',
    950: '#000000',
  },
}
SCSS
$custom: #5e308f;
$custom-light: #906bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e308f",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 269.053,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41904,
    "c": 0.15107,
    "h": 302.6
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#5E308F
secondary
#8FB566
accent
#D94F96
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E308F

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

Preview Lab → · Contrast checker → · Palette generator →

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