#4E2781#4E2781

#4E2781 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.144 H 299.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2781
RGBrgb(78, 39, 129)
HSLhsl(266, 54%, 33%)
HSVhsv(266, 70%, 51%)
CMYKcmyk(39.5%, 69.8%, 0%, 49.4%)
CIE-LABlab(25.73, 37.68, -44.06)
CIE-LCHlch(25.73, 57.98, 310.53°)
OKLaboklab(37.63% 0.0702 -0.1256)
OKLCHoklch(37.63% 0.144 299.2)
XYZxyz(7.8289, 4.6556, 21.2508)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2781 #5A8127
analogous
#272D81 #4E2781 #7B2781
triadic
#4E2781 #814E27 #27814E
tetradic
#4E2781 #81272D #5A8127 #27817B
square
#4E2781 #81272D #5A8127 #27817B
split-complementary
#4E2781 #817B27 #2D8127
monochromatic
#150B23 #321952 #4E2781 #6A35B0 #8956CC

Accessibility & contrast

On white

10.87
#4E2781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2781
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2781#FFFFFF#000000##FFFFFF
##4E27811.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#423C50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2781;
/* rgb */ color: rgb(78, 39, 129);
/* oklch */ color: oklch(37.6% 0.144 299.2);
Tailwind
colors: {
  custom: {
    50: '#8464a6',
    500: '#4e2781',
    950: '#000000',
  },
}
SCSS
$custom: #4e2781;
$custom-light: #8464a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2781",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 266,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37627,
    "c": 0.1439,
    "h": 299.2
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#4E2781
secondary
#88B153
accent
#DD4B9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E2781

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

Preview Lab → · Contrast checker → · Palette generator →

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