#4E2893#4E2893

#4E2893 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.164 H 293.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4E2893
RGBrgb(78, 40, 147)
HSLhsl(261, 57%, 37%)
HSVhsv(261, 73%, 58%)
CMYKcmyk(46.9%, 72.8%, 0%, 42.4%)
CIE-LABlab(27.42, 42.14, -52.52)
CIE-LCHlch(27.42, 67.33, 308.74°)
OKLaboklab(39.3% 0.0659 -0.1504)
OKLCHoklch(39.3% 0.164 293.7)
XYZxyz(9.1657, 5.2436, 28.1273)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2893 #6D9328
analogous
#283893 #4E2893 #842893
triadic
#4E2893 #934E28 #28934E
tetradic
#4E2893 #932838 #6D9328 #289384
square
#4E2893 #932838 #6D9328 #289384
split-complementary
#4E2893 #938428 #389328
monochromatic
#1B0E33 #341B63 #4E2893 #6835C3 #8A61D4

Accessibility & contrast

On white

10.25
#4E2893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E2893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2893
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2893#FFFFFF#000000##FFFFFF
##4E28931.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#003F91
Tritanopia (blue-blind)
#3A435B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2893;
/* rgb */ color: rgb(78, 40, 147);
/* oklch */ color: oklch(39.3% 0.164 293.7);
Tailwind
colors: {
  custom: {
    50: '#8665b4',
    500: '#4e2893',
    950: '#000000',
  },
}
SCSS
$custom: #4e2893;
$custom-light: #8665b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2893",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 261.308,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39298,
    "c": 0.16426,
    "h": 293.7
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#4E2893
secondary
#99BA5D
accent
#E047AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2893

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

Preview Lab → · Contrast checker → · Palette generator →

#4E2893 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva