#4E3381#4E3381

#4E3381 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.5% C 0.126 H 296.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4E3381
RGBrgb(78, 51, 129)
HSLhsl(261, 43%, 35%)
HSVhsv(261, 60%, 51%)
CMYKcmyk(39.5%, 60.5%, 0%, 49.4%)
CIE-LABlab(28.31, 30.74, -39.90)
CIE-LCHlch(28.31, 50.37, 307.61°)
OKLaboklab(39.5% 0.0555 -0.1134)
OKLCHoklch(39.5% 0.126 296.1)
XYZxyz(8.2871, 5.5722, 21.4035)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3381 #668133
analogous
#333F81 #4E3381 #753381
triadic
#4E3381 #814E33 #33814E
tetradic
#4E3381 #81333F #668133 #338175
square
#4E3381 #81333F #668133 #338175
split-complementary
#4E3381 #817533 #3F8133
monochromatic
#191029 #332255 #4E3381 #6944AD #896AC4

Accessibility & contrast

On white

9.93
#4E3381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E3381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3381
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3381#FFFFFF#000000##FFFFFF
##4E33811.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054384
Deuteranopia (green-blind)
#13427F
Tritanopia (blue-blind)
#424455
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e3381;
/* rgb */ color: rgb(78, 51, 129);
/* oklch */ color: oklch(39.5% 0.126 296.1);
Tailwind
colors: {
  custom: {
    50: '#836ca6',
    500: '#4e3381',
    950: '#000000',
  },
}
SCSS
$custom: #4e3381;
$custom-light: #836ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3381",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 260.769,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39495,
    "c": 0.12623,
    "h": 296.1
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#4E3381
secondary
#93AC64
accent
#D355A7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3381

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

Preview Lab → · Contrast checker → · Palette generator →

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