#5E2FAC#5E2FAC

#5E2FAC is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.186 H 294.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5E2FAC
RGBrgb(94, 47, 172)
HSLhsl(263, 57%, 43%)
HSVhsv(263, 73%, 67%)
CMYKcmyk(45.3%, 72.7%, 0%, 32.5%)
CIE-LABlab(32.68, 48.29, -59.02)
CIE-LCHlch(32.68, 76.26, 309.29°)
OKLaboklab(44.12% 0.0778 -0.169)
OKLCHoklch(44.12% 0.186 294.7)
XYZxyz(13.0770, 7.3909, 39.7593)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FAC #7DAC2F
analogous
#2F3EAC #5E2FAC #9C2FAC
triadic
#5E2FAC #AC5E2F #2FAC5E
tetradic
#5E2FAC #AC2F3E #7DAC2F #2FAC9C
square
#5E2FAC #AC2F3E #7DAC2F #2FAC9C
split-complementary
#5E2FAC #AC9C2F #3EAC2F
monochromatic
#29154C #44227C #5E2FAC #7C4BCE #9F7BDB

Accessibility & contrast

On white

8.47
#5E2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5E2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FAC
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FAC#FFFFFF#000000##FFFFFF
##5E2FAC1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2fac;
/* rgb */ color: rgb(94, 47, 172);
/* oklch */ color: oklch(44.1% 0.186 294.7);
Tailwind
colors: {
  custom: {
    50: '#936cc6',
    500: '#5e2fac',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fac;
$custom-light: #936cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fac",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 262.56,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44116,
    "c": 0.18607,
    "h": 294.7
  },
  "luminance": 0.07391
}

Semantic roles & 50–950 ramp

primary
#5E2FAC
secondary
#A5C374
accent
#E047A7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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