#4E2981#4E2981

#4E2981 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.141 H 298.8°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4E2981
RGBrgb(78, 41, 129)
HSLhsl(265, 52%, 33%)
HSVhsv(265, 68%, 51%)
CMYKcmyk(39.5%, 68.2%, 0%, 49.4%)
CIE-LABlab(26.13, 36.58, -43.42)
CIE-LCHlch(26.13, 56.77, 310.12°)
OKLaboklab(37.91% 0.0679 -0.1237)
OKLCHoklch(37.91% 0.141 298.8)
XYZxyz(7.8963, 4.7905, 21.2733)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2981 #5C8129
analogous
#293081 #4E2981 #7A2981
triadic
#4E2981 #814E29 #29814E
tetradic
#4E2981 #812930 #5C8129 #29817A
square
#4E2981 #812930 #5C8129 #29817A
split-complementary
#4E2981 #817A29 #308129
monochromatic
#160B24 #321A53 #4E2981 #6A38AF #895ACB

Accessibility & contrast

On white

10.72
#4E2981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2981
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2981#FFFFFF#000000##FFFFFF
##4E29811.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2981;
/* rgb */ color: rgb(78, 41, 129);
/* oklch */ color: oklch(37.9% 0.141 298.8);
Tailwind
colors: {
  custom: {
    50: '#8465a6',
    500: '#4e2981',
    950: '#000000',
  },
}
SCSS
$custom: #4e2981;
$custom-light: #8465a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2981",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 265.227,
    "s": 51.765,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37914,
    "c": 0.14112,
    "h": 298.8
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#4E2981
secondary
#8AB056
accent
#DB4D9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2981

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

Preview Lab → · Contrast checker → · Palette generator →

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