#5E309B#5E309B

#5E309B is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.165 H 298.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5E309B
RGBrgb(94, 48, 155)
HSLhsl(266, 53%, 40%)
HSVhsv(266, 69%, 61%)
CMYKcmyk(39.4%, 69%, 0%, 39.2%)
CIE-LABlab(31.49, 43.25, -50.71)
CIE-LCHlch(31.49, 66.64, 310.46°)
OKLaboklab(42.84% 0.0799 -0.1446)
OKLCHoklch(42.84% 0.165 298.9)
XYZxyz(11.5880, 6.8600, 31.7176)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E309B #6D9B30
analogous
#30389B #5E309B #93309B
triadic
#5E309B #9B5E30 #309B5E
tetradic
#5E309B #9B3038 #6D9B30 #309B93
square
#5E309B #9B3038 #6D9B30 #309B93
split-complementary
#5E309B #9B9330 #389B30
monochromatic
#25133E #42226C #5E309B #7B43C5 #9C72D3

Accessibility & contrast

On white

8.85
#5E309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E309B
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E309B#FFFFFF#000000##FFFFFF
##5E309B1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#504961
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e309b;
/* rgb */ color: rgb(94, 48, 155);
/* oklch */ color: oklch(42.8% 0.165 298.9);
Tailwind
colors: {
  custom: {
    50: '#916cb9',
    500: '#5e309b',
    950: '#000000',
  },
}
SCSS
$custom: #5e309b;
$custom-light: #916cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e309b",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 265.794,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42836,
    "c": 0.16521,
    "h": 298.9
  },
  "luminance": 0.0686
}

Semantic roles & 50–950 ramp

primary
#5E309B
secondary
#99BB6C
accent
#DC4C9E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E309B

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

Preview Lab → · Contrast checker → · Palette generator →

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