#5E309E#5E309E

#5E309E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.169 H 298.1°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5E309E
RGBrgb(94, 48, 158)
HSLhsl(265, 53%, 40%)
HSVhsv(265, 70%, 62%)
CMYKcmyk(40.5%, 69.6%, 0%, 38%)
CIE-LABlab(31.72, 44.04, -52.15)
CIE-LCHlch(31.72, 68.26, 310.18°)
OKLaboklab(43.08% 0.0794 -0.1488)
OKLCHoklch(43.08% 0.169 298.1)
XYZxyz(11.8430, 6.9620, 33.0610)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E309E #709E30
analogous
#30399E #5E309E #95309E
triadic
#5E309E #9E5E30 #309E5E
tetradic
#5E309E #9E3039 #709E30 #309E95
square
#5E309E #9E3039 #709E30 #309E95
split-complementary
#5E309E #9E9530 #399E30
monochromatic
#261340 #42226F #5E309E #7B45C6 #9C74D5

Accessibility & contrast

On white

8.78
#5E309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E309E
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E309E#FFFFFF#000000##FFFFFF
##5E309E1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4E4A63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e309e;
/* rgb */ color: rgb(94, 48, 158);
/* oklch */ color: oklch(43.1% 0.169 298.1);
Tailwind
colors: {
  custom: {
    50: '#916cbb',
    500: '#5e309e',
    950: '#000000',
  },
}
SCSS
$custom: #5e309e;
$custom-light: #916cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e309e",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 265.091,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43077,
    "c": 0.16871,
    "h": 298.1
  },
  "luminance": 0.06962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E309E

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

Preview Lab → · Contrast checker → · Palette generator →

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