#4E2A7E#4E2A7E

#4E2A7E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.136 H 299.5°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4E2A7E
RGBrgb(78, 42, 126)
HSLhsl(266, 50%, 33%)
HSVhsv(266, 67%, 49%)
CMYKcmyk(38.1%, 66.7%, 0%, 50.6%)
CIE-LABlab(26.10, 35.19, -41.57)
CIE-LCHlch(26.10, 54.46, 310.25°)
OKLaboklab(37.82% 0.067 -0.1183)
OKLCHoklch(37.82% 0.136 299.5)
XYZxyz(7.7348, 4.7819, 20.2501)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A7E #5A7E2A
analogous
#2A307E #4E2A7E #782A7E
triadic
#4E2A7E #7E4E2A #2A7E4E
tetradic
#4E2A7E #7E2A30 #5A7E2A #2A7E78
square
#4E2A7E #7E2A30 #5A7E2A #2A7E78
split-complementary
#4E2A7E #7E782A #307E2A
monochromatic
#150B22 #321B50 #4E2A7E #6A39AC #895AC8

Accessibility & contrast

On white

10.73
#4E2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A7E
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A7E#FFFFFF#000000##FFFFFF
##4E2A7E1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#013D7C
Tritanopia (blue-blind)
#433D50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2a7e;
/* rgb */ color: rgb(78, 42, 126);
/* oklch */ color: oklch(37.8% 0.136 299.5);
Tailwind
colors: {
  custom: {
    50: '#8466a4',
    500: '#4e2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a7e;
$custom-light: #8466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a7e",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 265.714,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37823,
    "c": 0.13596,
    "h": 299.5
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#4E2A7E
secondary
#88AE56
accent
#DA4E9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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