#5E2F96#5E2F96

#5E2F96 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.161 H 300.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5E2F96
RGBrgb(94, 47, 150)
HSLhsl(267, 52%, 39%)
HSVhsv(267, 69%, 59%)
CMYKcmyk(37.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(30.91, 42.45, -48.59)
CIE-LCHlch(30.91, 64.52, 311.15°)
OKLaboklab(42.3% 0.0817 -0.1384)
OKLCHoklch(42.3% 0.161 300.6)
XYZxyz(11.1363, 6.6146, 29.5383)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F96 #67962F
analogous
#2F3396 #5E2F96 #912F96
triadic
#5E2F96 #965E2F #2F965E
tetradic
#5E2F96 #962F33 #67962F #2F9691
square
#5E2F96 #962F33 #67962F #2F9691
split-complementary
#5E2F96 #96912F #33962F
monochromatic
#241239 #412067 #5E2F96 #7B3FC3 #9B6ED2

Accessibility & contrast

On white

9.04
#5E2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F96
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F96#FFFFFF#000000##FFFFFF
##5E2F961.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#52475E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2f96;
/* rgb */ color: rgb(94, 47, 150);
/* oklch */ color: oklch(42.3% 0.161 300.6);
Tailwind
colors: {
  custom: {
    50: '#906bb6',
    500: '#5e2f96',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f96;
$custom-light: #906bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f96",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 267.379,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42304,
    "c": 0.16069,
    "h": 300.6
  },
  "luminance": 0.06615
}

Semantic roles & 50–950 ramp

primary
#5E2F96
secondary
#94B968
accent
#DC4C9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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