#4E2A96#4E2A96

#4E2A96 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.165 H 292.5°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4E2A96
RGBrgb(78, 42, 150)
HSLhsl(260, 56%, 38%)
HSVhsv(260, 72%, 59%)
CMYKcmyk(48%, 72%, 0%, 41.2%)
CIE-LABlab(28.05, 41.94, -53.32)
CIE-LCHlch(28.05, 67.84, 308.18°)
OKLaboklab(39.83% 0.0634 -0.1528)
OKLCHoklch(39.83% 0.165 292.5)
XYZxyz(9.4733, 5.4773, 29.4063)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A96 #72962A
analogous
#2A3C96 #4E2A96 #842A96
triadic
#4E2A96 #964E2A #2A964E
tetradic
#4E2A96 #962A3C #72962A #2A9684
square
#4E2A96 #962A3C #72962A #2A9684
split-complementary
#4E2A96 #96842A #3C962A
monochromatic
#1C0F36 #351D66 #4E2A96 #6737C6 #8B66D4

Accessibility & contrast

On white

10.02
#4E2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A96
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A96#FFFFFF#000000##FFFFFF
##4E2A961.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#38465D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2a96;
/* rgb */ color: rgb(78, 42, 150);
/* oklch */ color: oklch(39.8% 0.165 292.5);
Tailwind
colors: {
  custom: {
    50: '#8767b6',
    500: '#4e2a96',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a96;
$custom-light: #8767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a96",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 260,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3983,
    "c": 0.16544,
    "h": 292.5
  },
  "luminance": 0.05478
}

Semantic roles & 50–950 ramp

primary
#4E2A96
secondary
#9DBA61
accent
#E048AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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