#5E2E8D#5E2E8D

#5E2E8D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.152 H 303.6°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5E2E8D
RGBrgb(94, 46, 141)
HSLhsl(270, 51%, 37%)
HSVhsv(270, 67%, 55%)
CMYKcmyk(33.3%, 67.4%, 0%, 44.7%)
CIE-LABlab(30.05, 40.65, -44.45)
CIE-LCHlch(30.05, 60.23, 312.44°)
OKLaboklab(41.47% 0.0839 -0.1262)
OKLCHoklch(41.47% 0.152 303.6)
XYZxyz(10.3997, 6.2568, 25.8539)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E8D #5D8D2E
analogous
#2F2E8D #5E2E8D #8D2E8D
triadic
#5E2E8D #8D5E2E #2E8D5E
tetradic
#5E2E8D #8D2F2E #5D8D2E #2E8D8D
square
#5E2E8D #8D2F2E #5D8D2E #2E8D8D
split-complementary
#5E2E8D #8D8D2E #2E8D2F
monochromatic
#201031 #3F1F5F #5E2E8D #7D3DBB #9B68CE

Accessibility & contrast

On white

9.33
#5E2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E8D
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E8D#FFFFFF#000000##FFFFFF
##5E2E8D1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#0D478B
Tritanopia (blue-blind)
#554359
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2e8d;
/* rgb */ color: rgb(94, 46, 141);
/* oklch */ color: oklch(41.5% 0.152 303.6);
Tailwind
colors: {
  custom: {
    50: '#906aaf',
    500: '#5e2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e8d;
$custom-light: #906aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e8d",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 270.316,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41473,
    "c": 0.15156,
    "h": 303.6
  },
  "luminance": 0.06257
}

Semantic roles & 50–950 ramp

primary
#5E2E8D
secondary
#8BB562
accent
#DA4E93
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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