#5E2FAA#5E2FAA

#5E2FAA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.184 H 295.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5E2FAA
RGBrgb(94, 47, 170)
HSLhsl(263, 57%, 43%)
HSVhsv(263, 72%, 67%)
CMYKcmyk(44.7%, 72.4%, 0%, 33.3%)
CIE-LABlab(32.51, 47.76, -58.10)
CIE-LCHlch(32.51, 75.20, 309.42°)
OKLaboklab(43.95% 0.0782 -0.1663)
OKLCHoklch(43.95% 0.184 295.2)
XYZxyz(12.8864, 7.3147, 38.7553)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FAA #7BAA2F
analogous
#2F3DAA #5E2FAA #9C2FAA
triadic
#5E2FAA #AA5E2F #2FAA5E
tetradic
#5E2FAA #AA2F3D #7BAA2F #2FAA9C
square
#5E2FAA #AA2F3D #7BAA2F #2FAA9C
split-complementary
#5E2FAA #AA9C2F #3DAA2F
monochromatic
#29144A #43227A #5E2FAA #7C49CD #9E79DA

Accessibility & contrast

On white

8.53
#5E2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5E2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FAA
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FAA#FFFFFF#000000##FFFFFF
##5E2FAA1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#494E69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2faa;
/* rgb */ color: rgb(94, 47, 170);
/* oklch */ color: oklch(43.9% 0.184 295.2);
Tailwind
colors: {
  custom: {
    50: '#936cc4',
    500: '#5e2faa',
    950: '#000000',
  },
}
SCSS
$custom: #5e2faa;
$custom-light: #936cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2faa",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 262.927,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43945,
    "c": 0.18379,
    "h": 295.2
  },
  "luminance": 0.07315
}

Semantic roles & 50–950 ramp

primary
#5E2FAA
secondary
#A4C272
accent
#E048A6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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