#5E306E#5E306E

#5E306E is a dark, moderate purple. Relative luminance 0.056; OKLCH L 39.6% C 0.112 H 316.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5E306E
RGBrgb(94, 48, 110)
HSLhsl(285, 39%, 31%)
HSVhsv(285, 56%, 43%)
CMYKcmyk(14.5%, 56.4%, 0%, 56.9%)
CIE-LABlab(28.43, 31.97, -27.57)
CIE-LCHlch(28.43, 42.21, 319.23°)
OKLaboklab(39.65% 0.0814 -0.0768)
OKLCHoklch(39.65% 0.112 316.7)
XYZxyz(8.4871, 5.6197, 15.3865)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E306E #406E30
analogous
#3F306E #5E306E #6E305F
triadic
#5E306E #6E5E30 #306E5E
tetradic
#5E306E #6E3F30 #406E30 #305F6E
square
#5E306E #6E3F30 #406E30 #305F6E
split-complementary
#5E306E #5F6E30 #306E3F
monochromatic
#150B19 #3A1D43 #5E306E #824399 #A25FB9

Accessibility & contrast

On white

9.89
#5E306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E306E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E306E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E306E#FFFFFF#000000##FFFFFF
##5E306E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224070
Deuteranopia (green-blind)
#31446C
Tritanopia (blue-blind)
#5D3A4A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e306e;
/* rgb */ color: rgb(94, 48, 110);
/* oklch */ color: oklch(39.6% 0.112 316.7);
Tailwind
colors: {
  custom: {
    50: '#8d6a98',
    500: '#5e306e',
    950: '#000000',
  },
}
SCSS
$custom: #5e306e;
$custom-light: #8d6a98;
$custom-dark: #000000;
JSON
{
  "hex": "#5e306e",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 284.516,
    "s": 39.241,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39645,
    "c": 0.11193,
    "h": 316.7
  },
  "luminance": 0.05619
}

Semantic roles & 50–950 ramp

primary
#5E306E
secondary
#6C9F5B
accent
#CF5977
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5E306E

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

Preview Lab → · Contrast checker → · Palette generator →

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