#5E309F#5E309F

#5E309F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.170 H 297.8°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5E309F
RGBrgb(94, 48, 159)
HSLhsl(265, 54%, 41%)
HSVhsv(265, 70%, 62%)
CMYKcmyk(40.9%, 69.8%, 0%, 37.6%)
CIE-LABlab(31.80, 44.31, -52.63)
CIE-LCHlch(31.80, 68.80, 310.10°)
OKLaboklab(43.16% 0.0793 -0.1502)
OKLCHoklch(43.16% 0.17 297.8)
XYZxyz(11.9294, 6.9966, 33.5161)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E309F #719F30
analogous
#30399F #5E309F #95309F
triadic
#5E309F #9F5E30 #309F5E
tetradic
#5E309F #9F3039 #719F30 #309F95
square
#5E309F #9F3039 #719F30 #309F95
split-complementary
#5E309F #9F9530 #399F30
monochromatic
#261441 #422270 #5E309F #7B45C7 #9C74D5

Accessibility & contrast

On white

8.75
#5E309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E309F
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E309F#FFFFFF#000000##FFFFFF
##5E309F1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#4E4B64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e309f;
/* rgb */ color: rgb(94, 48, 159);
/* oklch */ color: oklch(43.2% 0.170 297.8);
Tailwind
colors: {
  custom: {
    50: '#916cbc',
    500: '#5e309f',
    950: '#000000',
  },
}
SCSS
$custom: #5e309f;
$custom-light: #916cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e309f",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 264.865,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.16987,
    "h": 297.8
  },
  "luminance": 0.06997
}

Semantic roles & 50–950 ramp

primary
#5E309F
secondary
#9CBD6E
accent
#DD4BA0
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E309F

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

Preview Lab → · Contrast checker → · Palette generator →

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