#4E2491#4E2491

#4E2491 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.167 H 294.9°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4E2491
RGBrgb(78, 36, 145)
HSLhsl(263, 60%, 35%)
HSVhsv(263, 75%, 57%)
CMYKcmyk(46.2%, 75.2%, 0%, 43.1%)
CIE-LABlab(26.52, 43.61, -52.75)
CIE-LCHlch(26.52, 68.44, 309.59°)
OKLaboklab(38.61% 0.0702 -0.1511)
OKLCHoklch(38.61% 0.167 294.9)
XYZxyz(8.8822, 4.9256, 27.2653)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2491 #679124
analogous
#243191 #4E2491 #842491
triadic
#4E2491 #914E24 #24914E
tetradic
#4E2491 #912431 #679124 #249184
square
#4E2491 #912431 #679124 #249184
split-complementary
#4E2491 #918424 #319124
monochromatic
#190C2F #341860 #4E2491 #6830C2 #8959D6

Accessibility & contrast

On white

10.58
#4E2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2491
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2491#FFFFFF#000000##FFFFFF
##4E24911.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#3B4158
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2491;
/* rgb */ color: rgb(78, 36, 145);
/* oklch */ color: oklch(38.6% 0.167 294.9);
Tailwind
colors: {
  custom: {
    50: '#8663b2',
    500: '#4e2491',
    950: '#000000',
  },
}
SCSS
$custom: #4e2491;
$custom-light: #8663b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2491",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 263.119,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38609,
    "c": 0.16661,
    "h": 294.9
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#4E2491
secondary
#94BA56
accent
#E344A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2491

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

Preview Lab → · Contrast checker → · Palette generator →

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