#5E2F9D#5E2F9D

#5E2F9D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.169 H 298.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5E2F9D
RGBrgb(94, 47, 157)
HSLhsl(266, 54%, 40%)
HSVhsv(266, 70%, 62%)
CMYKcmyk(40.1%, 70.1%, 0%, 38.4%)
CIE-LABlab(31.46, 44.29, -51.97)
CIE-LCHlch(31.46, 68.29, 310.44°)
OKLaboklab(42.86% 0.0807 -0.1483)
OKLCHoklch(42.86% 0.169 298.5)
XYZxyz(11.7169, 6.8469, 32.5960)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F9D #6E9D2F
analogous
#2F379D #5E2F9D #952F9D
triadic
#5E2F9D #9D5E2F #2F9D5E
tetradic
#5E2F9D #9D2F37 #6E9D2F #2F9D95
square
#5E2F9D #9D2F37 #6E9D2F #2F9D95
split-complementary
#5E2F9D #9D952F #379D2F
monochromatic
#26133F #42216E #5E2F9D #7B43C7 #9C72D5

Accessibility & contrast

On white

8.86
#5E2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F9D
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F9D#FFFFFF#000000##FFFFFF
##5E2F9D1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#4F4962
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2f9d;
/* rgb */ color: rgb(94, 47, 157);
/* oklch */ color: oklch(42.9% 0.169 298.5);
Tailwind
colors: {
  custom: {
    50: '#916bbb',
    500: '#5e2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f9d;
$custom-light: #916bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f9d",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 265.636,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.42863,
    "c": 0.16883,
    "h": 298.5
  },
  "luminance": 0.06847
}

Semantic roles & 50–950 ramp

primary
#5E2F9D
secondary
#9ABC6B
accent
#DD4B9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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