#4E2581#4E2581

#4E2581 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.147 H 299.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4E2581
RGBrgb(78, 37, 129)
HSLhsl(267, 55%, 33%)
HSVhsv(267, 71%, 51%)
CMYKcmyk(39.5%, 71.3%, 0%, 49.4%)
CIE-LABlab(25.34, 38.75, -44.69)
CIE-LCHlch(25.34, 59.15, 310.93°)
OKLaboklab(37.35% 0.0725 -0.1274)
OKLCHoklch(37.35% 0.147 299.6)
XYZxyz(7.7649, 4.5277, 21.2295)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2581 #588125
analogous
#252A81 #4E2581 #7C2581
triadic
#4E2581 #814E25 #25814E
tetradic
#4E2581 #81252A #588125 #25817C
square
#4E2581 #81252A #588125 #25817C
split-complementary
#4E2581 #817C25 #2A8125
monochromatic
#140A22 #311751 #4E2581 #6B33B1 #8A53CE

Accessibility & contrast

On white

11.02
#4E2581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E2581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2581
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2581#FFFFFF#000000##FFFFFF
##4E25811.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#423B50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2581;
/* rgb */ color: rgb(78, 37, 129);
/* oklch */ color: oklch(37.4% 0.147 299.6);
Tailwind
colors: {
  custom: {
    50: '#8463a6',
    500: '#4e2581',
    950: '#000000',
  },
}
SCSS
$custom: #4e2581;
$custom-light: #8463a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2581",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 266.739,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37351,
    "c": 0.1466,
    "h": 299.6
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#4E2581
secondary
#86B250
accent
#DF499C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E2581

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

Preview Lab → · Contrast checker → · Palette generator →

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