#4E2CA1#4E2CA1

#4E2CA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.176 H 289.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#4E2CA1
RGBrgb(78, 44, 161)
HSLhsl(257, 57%, 40%)
HSVhsv(257, 73%, 63%)
CMYKcmyk(51.6%, 72.7%, 0%, 36.9%)
CIE-LABlab(29.40, 44.04, -57.84)
CIE-LCHlch(29.40, 72.69, 307.29°)
OKLaboklab(41.08% 0.0592 -0.1661)
OKLCHoklch(41.08% 0.176 289.6)
XYZxyz(10.4737, 5.9938, 34.3164)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2CA1 #7FA12C
analogous
#2C44A1 #4E2CA1 #882CA1
triadic
#4E2CA1 #A14E2C #2CA14E
tetradic
#4E2CA1 #A12C44 #7FA12C #2CA188
square
#4E2CA1 #A12C44 #7FA12C #2CA188
split-complementary
#4E2CA1 #A1882C #44A12C
monochromatic
#1F1241 #371F71 #4E2CA1 #6840CB #8E70D8

Accessibility & contrast

On white

9.55
#4E2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2CA1
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2CA1#FFFFFF#000000##FFFFFF
##4E2CA11.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#304B63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2ca1;
/* rgb */ color: rgb(78, 44, 161);
/* oklch */ color: oklch(41.1% 0.176 289.6);
Tailwind
colors: {
  custom: {
    50: '#8868be',
    500: '#4e2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ca1;
$custom-light: #8868be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ca1",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 257.436,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41082,
    "c": 0.17631,
    "h": 289.6
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#4E2CA1
secondary
#A6BF6A
accent
#E047B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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