#5E2CA3#5E2CA3

#5E2CA3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.179 H 297.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5E2CA3
RGBrgb(94, 44, 163)
HSLhsl(265, 57%, 41%)
HSVhsv(265, 73%, 64%)
CMYKcmyk(42.3%, 73%, 0%, 36.1%)
CIE-LABlab(31.41, 47.37, -55.69)
CIE-LCHlch(31.41, 73.11, 310.39°)
OKLaboklab(42.98% 0.0826 -0.1592)
OKLCHoklch(42.98% 0.179 297.4)
XYZxyz(12.1259, 6.8252, 35.3218)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2CA3 #71A32C
analogous
#2C35A3 #5E2CA3 #992CA3
triadic
#5E2CA3 #A35E2C #2CA35E
tetradic
#5E2CA3 #A32C35 #71A32C #2CA399
square
#5E2CA3 #A32C35 #71A32C #2CA399
split-complementary
#5E2CA3 #A3992C #35A32C
monochromatic
#261243 #421F73 #5E2CA3 #7B41CC #9C71D9

Accessibility & contrast

On white

8.88
#5E2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2CA3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2CA3#FFFFFF#000000##FFFFFF
##5E2CA31.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#4C4A65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ca3;
/* rgb */ color: rgb(94, 44, 163);
/* oklch */ color: oklch(43.0% 0.179 297.4);
Tailwind
colors: {
  custom: {
    50: '#926abf',
    500: '#5e2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ca3;
$custom-light: #926abf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ca3",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 265.21,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42979,
    "c": 0.17936,
    "h": 297.4
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#5E2CA3
secondary
#9CC06B
accent
#E147A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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