#5E309C#5E309C

#5E309C is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.166 H 298.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5E309C
RGBrgb(94, 48, 156)
HSLhsl(266, 53%, 40%)
HSVhsv(266, 69%, 61%)
CMYKcmyk(39.7%, 69.2%, 0%, 38.8%)
CIE-LABlab(31.56, 43.51, -51.19)
CIE-LCHlch(31.56, 67.18, 310.37°)
OKLaboklab(42.92% 0.0798 -0.146)
OKLCHoklch(42.92% 0.166 298.6)
XYZxyz(11.6723, 6.8937, 32.1617)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E309C #6E9C30
analogous
#30389C #5E309C #94309C
triadic
#5E309C #9C5E30 #309C5E
tetradic
#5E309C #9C3038 #6E9C30 #309C94
square
#5E309C #9C3038 #6E9C30 #309C94
split-complementary
#5E309C #9C9430 #389C30
monochromatic
#26133E #42226D #5E309C #7B44C5 #9C73D4

Accessibility & contrast

On white

8.83
#5E309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5E309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E309C
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E309C#FFFFFF#000000##FFFFFF
##5E309C1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#4F4A62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e309c;
/* rgb */ color: rgb(94, 48, 156);
/* oklch */ color: oklch(42.9% 0.166 298.6);
Tailwind
colors: {
  custom: {
    50: '#916cba',
    500: '#5e309c',
    950: '#000000',
  },
}
SCSS
$custom: #5e309c;
$custom-light: #916cba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e309c",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 265.556,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.42916,
    "c": 0.16637,
    "h": 298.6
  },
  "luminance": 0.06894
}

Semantic roles & 50–950 ramp

primary
#5E309C
secondary
#9ABC6C
accent
#DC4B9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E309C

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

Preview Lab → · Contrast checker → · Palette generator →

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