#5E2CA6#5E2CA6

#5E2CA6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.183 H 296.6°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5E2CA6
RGBrgb(94, 44, 166)
HSLhsl(265, 58%, 41%)
HSVhsv(265, 73%, 65%)
CMYKcmyk(43.4%, 73.5%, 0%, 34.9%)
CIE-LABlab(31.66, 48.16, -57.09)
CIE-LCHlch(31.66, 74.69, 310.15°)
OKLaboklab(43.23% 0.0819 -0.1633)
OKLCHoklch(43.23% 0.183 296.6)
XYZxyz(12.3979, 6.9340, 36.7542)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2CA6 #74A62C
analogous
#2C37A6 #5E2CA6 #9B2CA6
triadic
#5E2CA6 #A65E2C #2CA65E
tetradic
#5E2CA6 #A62C37 #74A62C #2CA69B
square
#5E2CA6 #A62C37 #74A62C #2CA69B
split-complementary
#5E2CA6 #A69B2C #37A62C
monochromatic
#271245 #431F76 #5E2CA6 #7B42CD #9D73DA

Accessibility & contrast

On white

8.80
#5E2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2CA6
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2CA6#FFFFFF#000000##FFFFFF
##5E2CA61.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#4B4B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ca6;
/* rgb */ color: rgb(94, 44, 166);
/* oklch */ color: oklch(43.2% 0.183 296.6);
Tailwind
colors: {
  custom: {
    50: '#926ac1',
    500: '#5e2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ca6;
$custom-light: #926ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ca6",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 264.59,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43234,
    "c": 0.18273,
    "h": 296.6
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

primary
#5E2CA6
secondary
#9FC16D
accent
#E146A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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