#5E2CA4#5E2CA4

#5E2CA4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.180 H 297.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5E2CA4
RGBrgb(94, 44, 164)
HSLhsl(265, 58%, 41%)
HSVhsv(265, 73%, 64%)
CMYKcmyk(42.7%, 73.2%, 0%, 35.7%)
CIE-LABlab(31.49, 47.63, -56.16)
CIE-LCHlch(31.49, 73.64, 310.31°)
OKLaboklab(43.06% 0.0824 -0.1606)
OKLCHoklch(43.06% 0.18 297.2)
XYZxyz(12.2159, 6.8612, 35.7955)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2CA4 #72A42C
analogous
#2C36A4 #5E2CA4 #9A2CA4
triadic
#5E2CA4 #A45E2C #2CA45E
tetradic
#5E2CA4 #A42C36 #72A42C #2CA49A
square
#5E2CA4 #A42C36 #72A42C #2CA49A
split-complementary
#5E2CA4 #A49A2C #36A42C
monochromatic
#271243 #421F74 #5E2CA4 #7B41CC #9D71D9

Accessibility & contrast

On white

8.85
#5E2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2CA4
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2CA4#FFFFFF#000000##FFFFFF
##5E2CA41.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#4C4B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ca4;
/* rgb */ color: rgb(94, 44, 164);
/* oklch */ color: oklch(43.1% 0.180 297.2);
Tailwind
colors: {
  custom: {
    50: '#926ac0',
    500: '#5e2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ca4;
$custom-light: #926ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ca4",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 265,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43064,
    "c": 0.18048,
    "h": 297.2
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#5E2CA4
secondary
#9DC06B
accent
#E147A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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