#4E2582#4E2582

#4E2582 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.148 H 299.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4E2582
RGBrgb(78, 37, 130)
HSLhsl(266, 56%, 33%)
HSVhsv(266, 72%, 51%)
CMYKcmyk(40%, 71.5%, 0%, 49%)
CIE-LABlab(25.43, 39.02, -45.19)
CIE-LCHlch(25.43, 59.70, 310.81°)
OKLaboklab(37.44% 0.0723 -0.1289)
OKLCHoklch(37.44% 0.148 299.3)
XYZxyz(7.8317, 4.5545, 21.5812)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2582 #598225
analogous
#252A82 #4E2582 #7D2582
triadic
#4E2582 #824E25 #25824E
tetradic
#4E2582 #82252A #598225 #25827D
square
#4E2582 #82252A #598225 #25827D
split-complementary
#4E2582 #827D25 #2A8225
monochromatic
#150A23 #311752 #4E2582 #6B33B2 #8953CE

Accessibility & contrast

On white

10.99
#4E2582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2582
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2582#FFFFFF#000000##FFFFFF
##4E25821.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2582;
/* rgb */ color: rgb(78, 37, 130);
/* oklch */ color: oklch(37.4% 0.148 299.3);
Tailwind
colors: {
  custom: {
    50: '#8463a7',
    500: '#4e2582',
    950: '#000000',
  },
}
SCSS
$custom: #4e2582;
$custom-light: #8463a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2582",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 266.452,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.14779,
    "h": 299.3
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#4E2582
secondary
#87B250
accent
#DF499D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E2582

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

Preview Lab → · Contrast checker → · Palette generator →

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