#5E307E#5E307E

#5E307E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.131 H 308.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5E307E
RGBrgb(94, 48, 126)
HSLhsl(275, 45%, 34%)
HSVhsv(275, 62%, 49%)
CMYKcmyk(25.4%, 61.9%, 0%, 50.6%)
CIE-LABlab(29.41, 35.79, -36.14)
CIE-LCHlch(29.41, 50.86, 314.73°)
OKLaboklab(40.68% 0.0822 -0.1018)
OKLCHoklch(40.68% 0.131 308.9)
XYZxyz(9.4382, 6.0001, 20.3956)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E307E #507E30
analogous
#37307E #5E307E #7E3077
triadic
#5E307E #7E5E30 #307E5E
tetradic
#5E307E #7E3730 #507E30 #30777E
square
#5E307E #7E3730 #507E30 #30777E
split-complementary
#5E307E #777E30 #307E37
monochromatic
#1C0E25 #3D1F52 #5E307E #7F41AA #9D64C4

Accessibility & contrast

On white

9.55
#5E307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5E307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E307E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E307E#FFFFFF#000000##FFFFFF
##5E307E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114380
Deuteranopia (green-blind)
#26467C
Tritanopia (blue-blind)
#593F52
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e307e;
/* rgb */ color: rgb(94, 48, 126);
/* oklch */ color: oklch(40.7% 0.131 308.9);
Tailwind
colors: {
  custom: {
    50: '#8e6ba4',
    500: '#5e307e',
    950: '#000000',
  },
}
SCSS
$custom: #5e307e;
$custom-light: #8e6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e307e",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 275.385,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.13084,
    "h": 308.9
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#5E307E
secondary
#7EAB5F
accent
#D55388
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5E307E

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

Preview Lab → · Contrast checker → · Palette generator →

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