#5E307D#5E307D

#5E307D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.130 H 309.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5E307D
RGBrgb(94, 48, 125)
HSLhsl(276, 45%, 34%)
HSVhsv(276, 62%, 49%)
CMYKcmyk(24.8%, 61.6%, 0%, 51%)
CIE-LABlab(29.35, 35.55, -35.61)
CIE-LCHlch(29.35, 50.32, 314.95°)
OKLaboklab(40.61% 0.0822 -0.1003)
OKLCHoklch(40.61% 0.13 309.3)
XYZxyz(9.3740, 5.9744, 20.0574)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E307D #4F7D30
analogous
#38307D #5E307D #7D3076
triadic
#5E307D #7D5E30 #307D5E
tetradic
#5E307D #7D3830 #4F7D30 #30767D
square
#5E307D #7D3830 #4F7D30 #30767D
split-complementary
#5E307D #767D30 #307D38
monochromatic
#1B0E25 #3D1F51 #5E307D #7F41A9 #9D64C3

Accessibility & contrast

On white

9.57
#5E307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E307D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E307D#FFFFFF#000000##FFFFFF
##5E307D1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12437F
Deuteranopia (green-blind)
#26467B
Tritanopia (blue-blind)
#5A3F51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e307d;
/* rgb */ color: rgb(94, 48, 125);
/* oklch */ color: oklch(40.6% 0.130 309.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ba3',
    500: '#5e307d',
    950: '#000000',
  },
}
SCSS
$custom: #5e307d;
$custom-light: #8e6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e307d",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 275.844,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40612,
    "c": 0.12965,
    "h": 309.3
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#5E307D
secondary
#7DAB5E
accent
#D45487
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5E307D

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

Preview Lab → · Contrast checker → · Palette generator →

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