#4E2381#4E2381

#4E2381 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.149 H 300.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#4E2381
RGBrgb(78, 35, 129)
HSLhsl(267, 57%, 32%)
HSVhsv(267, 73%, 51%)
CMYKcmyk(39.5%, 72.9%, 0%, 49.4%)
CIE-LABlab(24.97, 39.78, -45.29)
CIE-LCHlch(24.97, 60.28, 311.29°)
OKLaboklab(37.09% 0.0746 -0.1292)
OKLCHoklch(37.09% 0.149 300)
XYZxyz(7.7044, 4.4067, 21.2093)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2381 #568123
analogous
#232781 #4E2381 #7D2381
triadic
#4E2381 #814E23 #23814E
tetradic
#4E2381 #812327 #568123 #23817D
square
#4E2381 #812327 #568123 #23817D
split-complementary
#4E2381 #817D23 #278123
monochromatic
#140921 #311651 #4E2381 #6B30B1 #8A4FCF

Accessibility & contrast

On white

11.16
#4E2381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2381
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2381#FFFFFF#000000##FFFFFF
##4E23811.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#423A4F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2381;
/* rgb */ color: rgb(78, 35, 129);
/* oklch */ color: oklch(37.1% 0.149 300.0);
Tailwind
colors: {
  custom: {
    50: '#8462a6',
    500: '#4e2381',
    950: '#000000',
  },
}
SCSS
$custom: #4e2381;
$custom-light: #8462a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2381",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 267.447,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37086,
    "c": 0.14921,
    "h": 300
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#4E2381
secondary
#84B34D
accent
#E1479A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E2381

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

Preview Lab → · Contrast checker → · Palette generator →

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