#5E2E87#5E2E87

#5E2E87 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.145 H 305.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5E2E87
RGBrgb(94, 46, 135)
HSLhsl(272, 49%, 35%)
HSVhsv(272, 66%, 53%)
CMYKcmyk(30.4%, 65.9%, 0%, 47.1%)
CIE-LABlab(29.62, 39.13, -41.42)
CIE-LCHlch(29.62, 56.98, 313.37°)
OKLaboklab(41.03% 0.0845 -0.1173)
OKLCHoklch(41.03% 0.145 305.8)
XYZxyz(9.9653, 6.0830, 23.5661)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E87 #57872E
analogous
#322E87 #5E2E87 #872E83
triadic
#5E2E87 #875E2E #2E875E
tetradic
#5E2E87 #87322E #57872E #2E8387
square
#5E2E87 #87322E #57872E #2E8387
split-complementary
#5E2E87 #83872E #2E8732
monochromatic
#1E0F2C #3E1E59 #5E2E87 #7E3EB5 #9C65CA

Accessibility & contrast

On white

9.47
#5E2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E87
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E87#FFFFFF#000000##FFFFFF
##5E2E871.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#184685
Tritanopia (blue-blind)
#574156
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2e87;
/* rgb */ color: rgb(94, 46, 135);
/* oklch */ color: oklch(41.0% 0.145 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f6aaa',
    500: '#5e2e87',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e87;
$custom-light: #8f6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e87",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 272.36,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41026,
    "c": 0.14454,
    "h": 305.8
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

primary
#5E2E87
secondary
#85B160
accent
#D94F8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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