#4E2B81#4E2B81

#4E2B81 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.138 H 298.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4E2B81
RGBrgb(78, 43, 129)
HSLhsl(264, 50%, 34%)
HSVhsv(264, 67%, 51%)
CMYKcmyk(39.5%, 66.7%, 0%, 49.4%)
CIE-LABlab(26.54, 35.46, -42.75)
CIE-LCHlch(26.54, 55.54, 309.67°)
OKLaboklab(38.21% 0.0655 -0.1217)
OKLCHoklch(38.21% 0.138 298.3)
XYZxyz(7.9672, 4.9323, 21.2969)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B81 #5E812B
analogous
#2B3381 #4E2B81 #792B81
triadic
#4E2B81 #814E2B #2B814E
tetradic
#4E2B81 #812B33 #5E812B #2B8179
square
#4E2B81 #812B33 #5E812B #2B8179
split-complementary
#4E2B81 #81792B #33812B
monochromatic
#160C25 #321C53 #4E2B81 #6A3AAF #895DC9

Accessibility & contrast

On white

10.57
#4E2B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B81
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B81#FFFFFF#000000##FFFFFF
##4E2B811.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2b81;
/* rgb */ color: rgb(78, 43, 129);
/* oklch */ color: oklch(38.2% 0.138 298.3);
Tailwind
colors: {
  custom: {
    50: '#8467a6',
    500: '#4e2b81',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b81;
$custom-light: #8467a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b81",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 264.419,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3821,
    "c": 0.13827,
    "h": 298.3
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#4E2B81
secondary
#8CAF59
accent
#DA4EA1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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