#5E409C#5E409C

#5E409C is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.3% C 0.144 H 295.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5E409C
RGBrgb(94, 64, 156)
HSLhsl(260, 42%, 43%)
HSVhsv(260, 59%, 61%)
CMYKcmyk(39.7%, 59%, 0%, 38.8%)
CIE-LABlab(34.90, 34.54, -45.80)
CIE-LCHlch(34.90, 57.37, 307.02°)
OKLaboklab(45.33% 0.0609 -0.1302)
OKLCHoklch(45.33% 0.144 295.1)
XYZxyz(12.4487, 8.4465, 32.4205)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E409C #7E9C40
analogous
#40509C #5E409C #8C409C
triadic
#5E409C #9C5E40 #409C5E
tetradic
#5E409C #9C4050 #7E9C40 #409C8C
square
#5E409C #9C4050 #7E9C40 #409C8C
split-complementary
#5E409C #9C8C40 #509C40
monochromatic
#2A1C45 #442E71 #5E409C #7C5DBC #9F88CE

Accessibility & contrast

On white

7.81
#5E409C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5E409C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E409C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E409C#FFFFFF#000000##FFFFFF
##5E409C1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A539F
Deuteranopia (green-blind)
#19519A
Tritanopia (blue-blind)
#4E5467
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e409c;
/* rgb */ color: rgb(94, 64, 156);
/* oklch */ color: oklch(45.3% 0.144 295.1);
Tailwind
colors: {
  custom: {
    50: '#9076ba',
    500: '#5e409c',
    950: '#000000',
  },
}
SCSS
$custom: #5e409c;
$custom-light: #9076ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e409c",
  "rgb": {
    "r": 94,
    "g": 64,
    "b": 156
  },
  "hsl": {
    "h": 259.565,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45332,
    "c": 0.14375,
    "h": 295.1
  },
  "luminance": 0.08447
}

Semantic roles & 50–950 ramp

primary
#5E409C
secondary
#A6B97F
accent
#D256A9
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5E409C

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

Preview Lab → · Contrast checker → · Palette generator →

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