#5E2CA5#5E2CA5

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

Color values

HEX#5E2CA5
RGBrgb(94, 44, 165)
HSLhsl(265, 58%, 41%)
HSVhsv(265, 73%, 65%)
CMYKcmyk(43%, 73.3%, 0%, 35.3%)
CIE-LABlab(31.57, 47.90, -56.62)
CIE-LCHlch(31.57, 74.17, 310.23°)
OKLaboklab(43.15% 0.0822 -0.162)
OKLCHoklch(43.15% 0.182 296.9)
XYZxyz(12.3065, 6.8974, 36.2730)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2CA5 #73A52C
analogous
#2C37A5 #5E2CA5 #9A2CA5
triadic
#5E2CA5 #A55E2C #2CA55E
tetradic
#5E2CA5 #A52C37 #73A52C #2CA59A
square
#5E2CA5 #A52C37 #73A52C #2CA59A
split-complementary
#5E2CA5 #A59A2C #37A52C
monochromatic
#271244 #421F75 #5E2CA5 #7B42CD #9D72D9

Accessibility & contrast

On white

8.83
#5E2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5E2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2CA5
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2CA5#FFFFFF#000000##FFFFFF
##5E2CA51.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#4C4B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ca5;
/* rgb */ color: rgb(94, 44, 165);
/* oklch */ color: oklch(43.1% 0.182 296.9);
Tailwind
colors: {
  custom: {
    50: '#926ac1',
    500: '#5e2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ca5;
$custom-light: #926ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ca5",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 264.793,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43149,
    "c": 0.18161,
    "h": 296.9
  },
  "luminance": 0.06898
}

Semantic roles & 50–950 ramp

primary
#5E2CA5
secondary
#9EC16C
accent
#E147A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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