#5E2EA1#5E2EA1

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

Color values

HEX#5E2EA1
RGBrgb(94, 46, 161)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(41.6%, 71.4%, 0%, 36.9%)
CIE-LABlab(31.59, 45.86, -54.17)
CIE-LCHlch(31.59, 70.98, 310.25°)
OKLaboklab(43.06% 0.081 -0.1548)
OKLCHoklch(43.06% 0.175 297.6)
XYZxyz(12.0244, 6.9067, 34.4109)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA1 #71A12E
analogous
#2E38A1 #5E2EA1 #972EA1
triadic
#5E2EA1 #A15E2E #2EA15E
tetradic
#5E2EA1 #A12E38 #71A12E #2EA197
square
#5E2EA1 #A12E38 #71A12E #2EA197
split-complementary
#5E2EA1 #A1972E #38A12E
monochromatic
#261342 #422071 #5E2EA1 #7B43C9 #9C73D7

Accessibility & contrast

On white

8.82
#5E2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2EA1
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA1#FFFFFF#000000##FFFFFF
##5E2EA11.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4D4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ea1;
/* rgb */ color: rgb(94, 46, 161);
/* oklch */ color: oklch(43.1% 0.175 297.6);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5e2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea1;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea1",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 265.043,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43062,
    "c": 0.17469,
    "h": 297.6
  },
  "luminance": 0.06907
}

Semantic roles & 50–950 ramp

primary
#5E2EA1
secondary
#9CBE6C
accent
#DF49A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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