#5E2CA8#5E2CA8

#5E2CA8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.185 H 296.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5E2CA8
RGBrgb(94, 44, 168)
HSLhsl(264, 58%, 42%)
HSVhsv(264, 74%, 66%)
CMYKcmyk(44%, 73.8%, 0%, 34.1%)
CIE-LABlab(31.82, 48.69, -58.02)
CIE-LCHlch(31.82, 75.74, 310.00°)
OKLaboklab(43.41% 0.0815 -0.1661)
OKLCHoklch(43.41% 0.185 296.1)
XYZxyz(12.5828, 7.0079, 37.7279)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2CA8 #76A82C
analogous
#2C38A8 #5E2CA8 #9C2CA8
triadic
#5E2CA8 #A85E2C #2CA85E
tetradic
#5E2CA8 #A82C38 #76A82C #2CA89C
square
#5E2CA8 #A82C38 #76A82C #2CA89C
split-complementary
#5E2CA8 #A89C2C #38A82C
monochromatic
#281347 #431F78 #5E2CA8 #7B43CE #9D74DB

Accessibility & contrast

On white

8.74
#5E2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2CA8
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2CA8#FFFFFF#000000##FFFFFF
##5E2CA81.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#4A4C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2ca8;
/* rgb */ color: rgb(94, 44, 168);
/* oklch */ color: oklch(43.4% 0.185 296.1);
Tailwind
colors: {
  custom: {
    50: '#936ac3',
    500: '#5e2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ca8;
$custom-light: #936ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ca8",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 264.194,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43406,
    "c": 0.18497,
    "h": 296.1
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#5E2CA8
secondary
#A0C26E
accent
#E246A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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