#5E2CA1#5E2CA1

#5E2CA1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.177 H 297.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5E2CA1
RGBrgb(94, 44, 161)
HSLhsl(266, 57%, 40%)
HSVhsv(266, 73%, 63%)
CMYKcmyk(41.6%, 72.7%, 0%, 36.9%)
CIE-LABlab(31.24, 46.85, -54.75)
CIE-LCHlch(31.24, 72.06, 310.55°)
OKLaboklab(42.81% 0.083 -0.1565)
OKLCHoklch(42.81% 0.177 297.9)
XYZxyz(11.9481, 6.7541, 34.3855)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2CA1 #6FA12C
analogous
#2C35A1 #5E2CA1 #982CA1
triadic
#5E2CA1 #A15E2C #2CA15E
tetradic
#5E2CA1 #A12C35 #6FA12C #2CA198
square
#5E2CA1 #A12C35 #6FA12C #2CA198
split-complementary
#5E2CA1 #A1982C #35A12C
monochromatic
#261241 #421F71 #5E2CA1 #7B40CB #9C70D8

Accessibility & contrast

On white

8.93
#5E2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2CA1
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2CA1#FFFFFF#000000##FFFFFF
##5E2CA11.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#4D4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2ca1;
/* rgb */ color: rgb(94, 44, 161);
/* oklch */ color: oklch(42.8% 0.177 297.9);
Tailwind
colors: {
  custom: {
    50: '#926abe',
    500: '#5e2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ca1;
$custom-light: #926abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ca1",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 265.641,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42811,
    "c": 0.17711,
    "h": 297.9
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#5E2CA1
secondary
#9BBF6A
accent
#E0479F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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