#5E2C81#5E2C81

#5E2C81 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.141 H 308.4°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5E2C81
RGBrgb(94, 44, 129)
HSLhsl(275, 49%, 34%)
HSVhsv(275, 66%, 51%)
CMYKcmyk(27.1%, 65.9%, 0%, 49.4%)
CIE-LABlab(28.81, 38.70, -38.98)
CIE-LCHlch(28.81, 54.92, 314.79°)
OKLaboklab(40.31% 0.0874 -0.1101)
OKLCHoklch(40.31% 0.141 308.4)
XYZxyz(9.4784, 5.7662, 21.3783)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2C81 #4F812C
analogous
#342C81 #5E2C81 #812C7A
triadic
#5E2C81 #815E2C #2C815E
tetradic
#5E2C81 #81342C #4F812C #2C7A81
square
#5E2C81 #81342C #4F812C #2C7A81
split-complementary
#5E2C81 #7A812C #2C8134
monochromatic
#1B0D26 #3D1C53 #5E2C81 #7F3CAF #9D5FC8

Accessibility & contrast

On white

9.75
#5E2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2C81
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2C81#FFFFFF#000000##FFFFFF
##5E2C811.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#1E457F
Tritanopia (blue-blind)
#593D52
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2c81;
/* rgb */ color: rgb(94, 44, 129);
/* oklch */ color: oklch(40.3% 0.141 308.4);
Tailwind
colors: {
  custom: {
    50: '#8f68a6',
    500: '#5e2c81',
    950: '#000000',
  },
}
SCSS
$custom: #5e2c81;
$custom-light: #8f68a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2c81",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 275.294,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40311,
    "c": 0.14056,
    "h": 308.4
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#5E2C81
secondary
#7DAF5A
accent
#D94F88
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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