#4E2A7A#4E2A7A

#4E2A7A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.131 H 301.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4E2A7A
RGBrgb(78, 42, 122)
HSLhsl(267, 49%, 32%)
HSVhsv(267, 66%, 48%)
CMYKcmyk(36.1%, 65.6%, 0%, 52.2%)
CIE-LABlab(25.80, 34.09, -39.52)
CIE-LCHlch(25.80, 52.20, 310.78°)
OKLaboklab(37.51% 0.0674 -0.1123)
OKLCHoklch(37.51% 0.131 301)
XYZxyz(7.4819, 4.6807, 18.9179)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A7A #567A2A
analogous
#2A2E7A #4E2A7A #762A7A
triadic
#4E2A7A #7A4E2A #2A7A4E
tetradic
#4E2A7A #7A2A2E #567A2A #2A7A76
square
#4E2A7A #7A2A2E #567A2A #2A7A76
split-complementary
#4E2A7A #7A762A #2E7A2A
monochromatic
#140B1F #311A4C #4E2A7A #6B3AA8 #8A59C6

Accessibility & contrast

On white

10.85
#4E2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A7A
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A7A#FFFFFF#000000##FFFFFF
##4E2A7A1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#0C3D78
Tritanopia (blue-blind)
#453B4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2a7a;
/* rgb */ color: rgb(78, 42, 122);
/* oklch */ color: oklch(37.5% 0.131 301.0);
Tailwind
colors: {
  custom: {
    50: '#8366a1',
    500: '#4e2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a7a;
$custom-light: #8366a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a7a",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 267,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37511,
    "c": 0.13094,
    "h": 301
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#4E2A7A
secondary
#84AB55
accent
#D84F9B
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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