#4E2881#4E2881

#4E2881 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.143 H 299.0°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4E2881
RGBrgb(78, 40, 129)
HSLhsl(266, 53%, 33%)
HSVhsv(266, 69%, 51%)
CMYKcmyk(39.5%, 69%, 0%, 49.4%)
CIE-LABlab(25.93, 37.13, -43.74)
CIE-LCHlch(25.93, 57.38, 310.33°)
OKLaboklab(37.77% 0.0691 -0.1247)
OKLCHoklch(37.77% 0.143 299)
XYZxyz(7.8621, 4.7222, 21.2619)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2881 #5B8128
analogous
#282E81 #4E2881 #7A2881
triadic
#4E2881 #814E28 #28814E
tetradic
#4E2881 #81282E #5B8128 #28817A
square
#4E2881 #81282E #5B8128 #28817A
split-complementary
#4E2881 #817A28 #2E8128
monochromatic
#160B24 #321A52 #4E2881 #6A36B0 #8958CB

Accessibility & contrast

On white

10.80
#4E2881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2881
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2881#FFFFFF#000000##FFFFFF
##4E28811.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2881;
/* rgb */ color: rgb(78, 40, 129);
/* oklch */ color: oklch(37.8% 0.143 299.0);
Tailwind
colors: {
  custom: {
    50: '#8465a6',
    500: '#4e2881',
    950: '#000000',
  },
}
SCSS
$custom: #4e2881;
$custom-light: #8465a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2881",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 129
  },
  "hsl": {
    "h": 265.618,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37769,
    "c": 0.14252,
    "h": 299
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#4E2881
secondary
#89B054
accent
#DC4C9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2881

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

Preview Lab → · Contrast checker → · Palette generator →

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