#4E2A78#4E2A78

#4E2A78 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.128 H 301.7°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#4E2A78
RGBrgb(78, 42, 120)
HSLhsl(268, 48%, 32%)
HSVhsv(268, 65%, 47%)
CMYKcmyk(35%, 65%, 0%, 52.9%)
CIE-LABlab(25.66, 33.55, -38.49)
CIE-LCHlch(25.66, 51.06, 311.07°)
OKLaboklab(37.36% 0.0675 -0.1092)
OKLCHoklch(37.36% 0.128 301.7)
XYZxyz(7.3592, 4.6317, 18.2720)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A78 #54782A
analogous
#2A2D78 #4E2A78 #752A78
triadic
#4E2A78 #784E2A #2A784E
tetradic
#4E2A78 #782A2D #54782A #2A7875
square
#4E2A78 #782A2D #54782A #2A7875
split-complementary
#4E2A78 #78752A #2D782A
monochromatic
#130A1D #311A4B #4E2A78 #6B3AA5 #8A58C5

Accessibility & contrast

On white

10.90
#4E2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A78
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A78#FFFFFF#000000##FFFFFF
##4E2A781.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#103C76
Tritanopia (blue-blind)
#453B4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2a78;
/* rgb */ color: rgb(78, 42, 120);
/* oklch */ color: oklch(37.4% 0.128 301.7);
Tailwind
colors: {
  custom: {
    50: '#83669f',
    500: '#4e2a78',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a78;
$custom-light: #83669f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a78",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 267.692,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.12841,
    "h": 301.7
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#4E2A78
secondary
#82AA54
accent
#D85099
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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