#5E418F#5E418F

#5E418F is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.6% C 0.125 H 298.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5E418F
RGBrgb(94, 65, 143)
HSLhsl(262, 38%, 41%)
HSVhsv(262, 55%, 56%)
CMYKcmyk(34.3%, 54.5%, 0%, 43.9%)
CIE-LABlab(34.28, 30.31, -38.88)
CIE-LCHlch(34.28, 49.30, 307.94°)
OKLaboklab(44.61% 0.0593 -0.1099)
OKLCHoklch(44.61% 0.125 298.4)
XYZxyz(11.4631, 8.1433, 26.9492)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E418F #728F41
analogous
#414B8F #5E418F #85418F
triadic
#5E418F #8F5E41 #418F5E
tetradic
#5E418F #8F414B #728F41 #418F85
square
#5E418F #8F414B #728F41 #418F85
split-complementary
#5E418F #8F8541 #4B8F41
monochromatic
#271B3B #422E65 #5E418F #7B59B4 #9D84C7

Accessibility & contrast

On white

7.99
#5E418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5E418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E418F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E418F#FFFFFF#000000##FFFFFF
##5E418F1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235192
Deuteranopia (green-blind)
#2B508D
Tritanopia (blue-blind)
#535061
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e418f;
/* rgb */ color: rgb(94, 65, 143);
/* oklch */ color: oklch(44.6% 0.125 298.4);
Tailwind
colors: {
  custom: {
    50: '#8e76b0',
    500: '#5e418f',
    950: '#000000',
  },
}
SCSS
$custom: #5e418f;
$custom-light: #8e76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e418f",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 262.308,
    "s": 37.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44605,
    "c": 0.12487,
    "h": 298.4
  },
  "luminance": 0.08143
}

Semantic roles & 50–950 ramp

primary
#5E418F
secondary
#9DB17A
accent
#CD5AA3
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0D0810
muted
#7D7B7F

Preview Lab

Preview with #5E418F

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

Preview Lab → · Contrast checker → · Palette generator →

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