#4E2A94#4E2A94

#4E2A94 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.163 H 293.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#4E2A94
RGBrgb(78, 42, 148)
HSLhsl(260, 56%, 37%)
HSVhsv(260, 72%, 58%)
CMYKcmyk(47.3%, 71.6%, 0%, 42%)
CIE-LABlab(27.88, 41.37, -52.38)
CIE-LCHlch(27.88, 66.74, 308.30°)
OKLaboklab(39.65% 0.0638 -0.15)
OKLCHoklch(39.65% 0.163 293)
XYZxyz(9.3137, 5.4135, 28.5654)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A94 #70942A
analogous
#2A3B94 #4E2A94 #832A94
triadic
#4E2A94 #944E2A #2A944E
tetradic
#4E2A94 #942A3B #70942A #2A9483
square
#4E2A94 #942A3B #70942A #2A9483
split-complementary
#4E2A94 #94832A #3B942A
monochromatic
#1C0F35 #351C64 #4E2A94 #6738C4 #8B65D3

Accessibility & contrast

On white

10.08
#4E2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A94
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A94#FFFFFF#000000##FFFFFF
##4E2A941.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#39455C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2a94;
/* rgb */ color: rgb(78, 42, 148);
/* oklch */ color: oklch(39.7% 0.163 293.0);
Tailwind
colors: {
  custom: {
    50: '#8667b4',
    500: '#4e2a94',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a94;
$custom-light: #8667b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a94",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 260.377,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39654,
    "c": 0.16303,
    "h": 293
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#4E2A94
secondary
#9BB960
accent
#DF49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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