#4E2E81#4E2E81

#4E2E81 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.134 H 297.5°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4E2E81
RGBrgb(78, 46, 129)
HSLhsl(263, 47%, 34%)
HSVhsv(263, 64%, 51%)
CMYKcmyk(39.5%, 64.3%, 0%, 49.4%)
CIE-LABlab(27.18, 33.73, -41.71)
CIE-LCHlch(27.18, 53.64, 308.96°)
OKLaboklab(38.67% 0.0619 -0.1187)
OKLCHoklch(38.67% 0.134 297.5)
XYZxyz(8.0803, 5.1585, 21.3346)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E81 #61812E
analogous
#2E3781 #4E2E81 #782E81
triadic
#4E2E81 #814E2E #2E814E
tetradic
#4E2E81 #812E37 #61812E #2E8178
square
#4E2E81 #812E37 #61812E #2E8178
split-complementary
#4E2E81 #81782E #37812E
monochromatic
#170E27 #331E54 #4E2E81 #693EAE #8962C7

Accessibility & contrast

On white

10.34
#4E2E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E81
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E81#FFFFFF#000000##FFFFFF
##4E2E811.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#053F7F
Tritanopia (blue-blind)
#424053
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2e81;
/* rgb */ color: rgb(78, 46, 129);
/* oklch */ color: oklch(38.7% 0.134 297.5);
Tailwind
colors: {
  custom: {
    50: '#8468a6',
    500: '#4e2e81',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e81;
$custom-light: #8468a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e81",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 263.133,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.13386,
    "h": 297.5
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#4E2E81
secondary
#8FAE5D
accent
#D751A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2E81

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

Preview Lab → · Contrast checker → · Palette generator →

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