#5E3095#5E3095

#5E3095 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.158 H 300.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5E3095
RGBrgb(94, 48, 149)
HSLhsl(267, 51%, 39%)
HSVhsv(267, 68%, 58%)
CMYKcmyk(36.9%, 67.8%, 0%, 41.6%)
CIE-LABlab(31.03, 41.67, -47.79)
CIE-LCHlch(31.03, 63.40, 311.08°)
OKLaboklab(42.36% 0.0807 -0.136)
OKLCHoklch(42.36% 0.158 300.7)
XYZxyz(11.0965, 6.6634, 29.1295)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3095 #679530
analogous
#303495 #5E3095 #903095
triadic
#5E3095 #955E30 #30955E
tetradic
#5E3095 #953034 #679530 #309590
square
#5E3095 #953034 #679530 #309590
split-complementary
#5E3095 #959030 #349530
monochromatic
#241238 #412167 #5E3095 #7B41C2 #9B6FD1

Accessibility & contrast

On white

9.00
#5E3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5E3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3095
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3095#FFFFFF#000000##FFFFFF
##5E30951.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#52475E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e3095;
/* rgb */ color: rgb(94, 48, 149);
/* oklch */ color: oklch(42.4% 0.158 300.7);
Tailwind
colors: {
  custom: {
    50: '#906cb5',
    500: '#5e3095',
    950: '#000000',
  },
}
SCSS
$custom: #5e3095;
$custom-light: #906cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3095",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 267.327,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42363,
    "c": 0.15815,
    "h": 300.7
  },
  "luminance": 0.06664
}

Semantic roles & 50–950 ramp

primary
#5E3095
secondary
#94B869
accent
#DB4D9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E3095

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

Preview Lab → · Contrast checker → · Palette generator →

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