#5E2FAB#5E2FAB

#5E2FAB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.185 H 295.0°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5E2FAB
RGBrgb(94, 47, 171)
HSLhsl(263, 57%, 43%)
HSVhsv(263, 73%, 67%)
CMYKcmyk(45%, 72.5%, 0%, 32.9%)
CIE-LABlab(32.60, 48.02, -58.56)
CIE-LCHlch(32.60, 75.73, 309.36°)
OKLaboklab(44.03% 0.078 -0.1677)
OKLCHoklch(44.03% 0.185 295)
XYZxyz(12.9813, 7.3527, 39.2554)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FAB #7CAB2F
analogous
#2F3EAB #5E2FAB #9C2FAB
triadic
#5E2FAB #AB5E2F #2FAB5E
tetradic
#5E2FAB #AB2F3E #7CAB2F #2FAB9C
square
#5E2FAB #AB2F3E #7CAB2F #2FAB9C
split-complementary
#5E2FAB #AB9C2F #3EAB2F
monochromatic
#29154B #44227B #5E2FAB #7C4ACD #9F7ADA

Accessibility & contrast

On white

8.50
#5E2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5E2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FAB
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FAB#FFFFFF#000000##FFFFFF
##5E2FAB1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#484F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e2fab;
/* rgb */ color: rgb(94, 47, 171);
/* oklch */ color: oklch(44.0% 0.185 295.0);
Tailwind
colors: {
  custom: {
    50: '#936cc5',
    500: '#5e2fab',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fab;
$custom-light: #936cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fab",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 262.742,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4403,
    "c": 0.18492,
    "h": 295
  },
  "luminance": 0.07353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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