#4E2CA4#4E2CA4

#4E2CA4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.180 H 289.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4E2CA4
RGBrgb(78, 44, 164)
HSLhsl(257, 58%, 41%)
HSVhsv(257, 73%, 64%)
CMYKcmyk(52.4%, 73.2%, 0%, 35.7%)
CIE-LABlab(29.67, 44.90, -59.21)
CIE-LCHlch(29.67, 74.31, 307.18°)
OKLaboklab(41.36% 0.0585 -0.1701)
OKLCHoklch(41.36% 0.18 289)
XYZxyz(10.7415, 6.1009, 35.7264)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2CA4 #82A42C
analogous
#2C46A4 #4E2CA4 #8A2CA4
triadic
#4E2CA4 #A44E2C #2CA44E
tetradic
#4E2CA4 #A42C46 #82A42C #2CA48A
square
#4E2CA4 #A42C46 #82A42C #2CA48A
split-complementary
#4E2CA4 #A48A2C #46A42C
monochromatic
#201243 #371F74 #4E2CA4 #6841CC #8F71D9

Accessibility & contrast

On white

9.46
#4E2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2CA4
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2CA4#FFFFFF#000000##FFFFFF
##4E2CA41.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#2E4C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ca4;
/* rgb */ color: rgb(78, 44, 164);
/* oklch */ color: oklch(41.4% 0.180 289.0);
Tailwind
colors: {
  custom: {
    50: '#8868c0',
    500: '#4e2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ca4;
$custom-light: #8868c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ca4",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 257,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41355,
    "c": 0.1799,
    "h": 289
  },
  "luminance": 0.06101
}

Semantic roles & 50–950 ramp

primary
#4E2CA4
secondary
#A8C06B
accent
#E147B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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