#4E2C81#4E2C81

#4E2C81 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.137 H 298.0°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4E2C81
RGBrgb(78, 44, 129)
HSLhsl(264, 49%, 34%)
HSVhsv(264, 66%, 51%)
CMYKcmyk(39.5%, 65.9%, 0%, 49.4%)
CIE-LABlab(26.75, 34.89, -42.41)
CIE-LCHlch(26.75, 54.91, 309.44°)
OKLaboklab(38.36% 0.0643 -0.1207)
OKLCHoklch(38.36% 0.137 298)
XYZxyz(8.0040, 5.0059, 21.3092)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C81 #5F812C
analogous
#2C3581 #4E2C81 #792C81
triadic
#4E2C81 #814E2C #2C814E
tetradic
#4E2C81 #812C35 #5F812C #2C8179
square
#4E2C81 #812C35 #5F812C #2C8179
split-complementary
#4E2C81 #81792C #35812C
monochromatic
#170D26 #321C53 #4E2C81 #6A3CAF #895FC8

Accessibility & contrast

On white

10.49
#4E2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C81
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C81#FFFFFF#000000##FFFFFF
##4E2C811.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#423F52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2c81;
/* rgb */ color: rgb(78, 44, 129);
/* oklch */ color: oklch(38.4% 0.137 298.0);
Tailwind
colors: {
  custom: {
    50: '#8467a6',
    500: '#4e2c81',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c81;
$custom-light: #8467a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c81",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 264,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38363,
    "c": 0.13681,
    "h": 298
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#4E2C81
secondary
#8DAF5A
accent
#D94FA2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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