#4E2580#4E2580

#4E2580 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.145 H 300.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4E2580
RGBrgb(78, 37, 128)
HSLhsl(267, 55%, 32%)
HSVhsv(267, 71%, 50%)
CMYKcmyk(39.1%, 71.1%, 0%, 49.8%)
CIE-LABlab(25.26, 38.48, -44.19)
CIE-LCHlch(25.26, 58.59, 311.05°)
OKLaboklab(37.27% 0.0726 -0.126)
OKLCHoklch(37.27% 0.145 300)
XYZxyz(7.6988, 4.5013, 20.8811)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2580 #578025
analogous
#252980 #4E2580 #7C2580
triadic
#4E2580 #804E25 #25804E
tetradic
#4E2580 #802529 #578025 #25807C
square
#4E2580 #802529 #578025 #25807C
split-complementary
#4E2580 #807C25 #298025
monochromatic
#140A21 #311751 #4E2580 #6B33AF #8A52CD

Accessibility & contrast

On white

11.05
#4E2580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E2580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2580
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2580#FFFFFF#000000##FFFFFF
##4E25801.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#433B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2580;
/* rgb */ color: rgb(78, 37, 128);
/* oklch */ color: oklch(37.3% 0.145 300.0);
Tailwind
colors: {
  custom: {
    50: '#8463a6',
    500: '#4e2580',
    950: '#000000',
  },
}
SCSS
$custom: #4e2580;
$custom-light: #8463a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2580",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 128
  },
  "hsl": {
    "h": 267.033,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37268,
    "c": 0.14541,
    "h": 300
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#4E2580
secondary
#85B150
accent
#DE499B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E2580

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

Preview Lab → · Contrast checker → · Palette generator →

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