#5E2DB3#5E2DB3

#5E2DB3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.196 H 293.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5E2DB3
RGBrgb(94, 45, 179)
HSLhsl(262, 60%, 44%)
HSVhsv(262, 75%, 70%)
CMYKcmyk(47.5%, 74.9%, 0%, 29.8%)
CIE-LABlab(32.94, 51.13, -62.77)
CIE-LCHlch(32.94, 80.96, 309.17°)
OKLaboklab(44.49% 0.078 -0.18)
OKLCHoklch(44.49% 0.196 293.4)
XYZxyz(13.6889, 7.5107, 43.3675)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DB3 #82B32D
analogous
#2D3FB3 #5E2DB3 #A12DB3
triadic
#5E2DB3 #B35E2D #2DB35E
tetradic
#5E2DB3 #B32D3F #82B32D #2DB3A1
square
#5E2DB3 #B32D3F #82B32D #2DB3A1
split-complementary
#5E2DB3 #B3A12D #3FB32D
monochromatic
#2B1451 #442182 #5E2DB3 #7D4BD2 #A07CDE

Accessibility & contrast

On white

8.39
#5E2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5E2DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DB3
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DB3#FFFFFF#000000##FFFFFF
##5E2DB31.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#44516E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e2db3;
/* rgb */ color: rgb(94, 45, 179);
/* oklch */ color: oklch(44.5% 0.196 293.4);
Tailwind
colors: {
  custom: {
    50: '#946bcb',
    500: '#5e2db3',
    950: '#000000',
  },
}
SCSS
$custom: #5e2db3;
$custom-light: #946bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2db3",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 261.94,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44487,
    "c": 0.19617,
    "h": 293.4
  },
  "luminance": 0.07511
}

Semantic roles & 50–950 ramp

primary
#5E2DB3
secondary
#A9C775
accent
#E345A9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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