#5E2DA5#5E2DA5

#5E2DA5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.180 H 296.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5E2DA5
RGBrgb(94, 45, 165)
HSLhsl(265, 57%, 41%)
HSVhsv(265, 73%, 65%)
CMYKcmyk(43%, 72.7%, 0%, 35.3%)
CIE-LABlab(31.74, 47.41, -56.34)
CIE-LCHlch(31.74, 73.64, 310.08°)
OKLaboklab(43.27% 0.0812 -0.1611)
OKLCHoklch(43.27% 0.18 296.7)
XYZxyz(12.3442, 6.9728, 36.2855)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DA5 #74A52D
analogous
#2D38A5 #5E2DA5 #9A2DA5
triadic
#5E2DA5 #A55E2D #2DA55E
tetradic
#5E2DA5 #A52D38 #74A52D #2DA59A
square
#5E2DA5 #A52D38 #74A52D #2DA59A
split-complementary
#5E2DA5 #A59A2D #38A52D
monochromatic
#271345 #432075 #5E2DA5 #7B43CC #9D73D9

Accessibility & contrast

On white

8.77
#5E2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2DA5
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DA5#FFFFFF#000000##FFFFFF
##5E2DA51.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#4B4B66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2da5;
/* rgb */ color: rgb(94, 45, 165);
/* oklch */ color: oklch(43.3% 0.180 296.7);
Tailwind
colors: {
  custom: {
    50: '#926ac1',
    500: '#5e2da5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2da5;
$custom-light: #926ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2da5",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 264.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43271,
    "c": 0.18044,
    "h": 296.7
  },
  "luminance": 0.06973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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