#5E2E95#5E2E95

#5E2E95 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.161 H 301.1°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5E2E95
RGBrgb(94, 46, 149)
HSLhsl(268, 53%, 38%)
HSVhsv(268, 69%, 58%)
CMYKcmyk(36.9%, 69.1%, 0%, 41.6%)
CIE-LABlab(30.65, 42.71, -48.40)
CIE-LCHlch(30.65, 64.55, 311.43°)
OKLaboklab(42.09% 0.083 -0.1378)
OKLCHoklch(42.09% 0.161 301.1)
XYZxyz(11.0166, 6.5035, 29.1029)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E95 #65952E
analogous
#2E3195 #5E2E95 #912E95
triadic
#5E2E95 #955E2E #2E955E
tetradic
#5E2E95 #952E31 #65952E #2E9591
square
#5E2E95 #952E31 #65952E #2E9591
split-complementary
#5E2E95 #95912E #31952E
monochromatic
#231137 #402066 #5E2E95 #7C3DC3 #9B6CD2

Accessibility & contrast

On white

9.13
#5E2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5E2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E95
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E95#FFFFFF#000000##FFFFFF
##5E2E951.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#52465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e2e95;
/* rgb */ color: rgb(94, 46, 149);
/* oklch */ color: oklch(42.1% 0.161 301.1);
Tailwind
colors: {
  custom: {
    50: '#906ab5',
    500: '#5e2e95',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e95;
$custom-light: #906ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e95",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 267.961,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42091,
    "c": 0.16086,
    "h": 301.1
  },
  "luminance": 0.06504
}

Semantic roles & 50–950 ramp

primary
#5E2E95
secondary
#92B966
accent
#DC4C99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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