#5E2F8E#5E2F8E

#5E2F8E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.151 H 303.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5E2F8E
RGBrgb(94, 47, 142)
HSLhsl(270, 50%, 37%)
HSVhsv(270, 67%, 56%)
CMYKcmyk(33.8%, 66.9%, 0%, 44.3%)
CIE-LABlab(30.32, 40.38, -44.64)
CIE-LCHlch(30.32, 60.19, 312.13°)
OKLaboklab(41.69% 0.0827 -0.1267)
OKLCHoklch(41.69% 0.151 303.1)
XYZxyz(10.5140, 6.3657, 26.2607)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F8E #5F8E2F
analogous
#2F308E #5E2F8E #8E2F8E
triadic
#5E2F8E #8E5E2F #2F8E5E
tetradic
#5E2F8E #8E2F30 #5F8E2F #2F8E8E
square
#5E2F8E #8E2F30 #5F8E2F #2F8E8E
split-complementary
#5E2F8E #8E8E2F #308E2F
monochromatic
#211132 #402060 #5E2F8E #7C3EBC #9B6ACE

Accessibility & contrast

On white

9.24
#5E2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F8E
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F8E#FFFFFF#000000##FFFFFF
##5E2F8E1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#0D478C
Tritanopia (blue-blind)
#55445A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2f8e;
/* rgb */ color: rgb(94, 47, 142);
/* oklch */ color: oklch(41.7% 0.151 303.1);
Tailwind
colors: {
  custom: {
    50: '#906bb0',
    500: '#5e2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f8e;
$custom-light: #906bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f8e",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 269.684,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41688,
    "c": 0.15131,
    "h": 303.1
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#5E2F8E
secondary
#8DB564
accent
#DA4E95
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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