#4E2497#4E2497

#4E2497 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.174 H 293.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4E2497
RGBrgb(78, 36, 151)
HSLhsl(262, 61%, 37%)
HSVhsv(262, 76%, 59%)
CMYKcmyk(48.3%, 76.2%, 0%, 40.8%)
CIE-LABlab(27.06, 45.26, -55.56)
CIE-LCHlch(27.06, 71.66, 309.17°)
OKLaboklab(39.16% 0.0687 -0.1594)
OKLCHoklch(39.16% 0.174 293.3)
XYZxyz(9.3571, 5.1155, 29.7665)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2497 #6D9724
analogous
#243497 #4E2497 #882497
triadic
#4E2497 #974E24 #24974E
tetradic
#4E2497 #972434 #6D9724 #249788
square
#4E2497 #972434 #6D9724 #249788
split-complementary
#4E2497 #978824 #349724
monochromatic
#1B0C34 #341866 #4E2497 #6830C8 #8A5DD8

Accessibility & contrast

On white

10.38
#4E2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2497
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2497#FFFFFF#000000##FFFFFF
##4E24971.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#38435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2497;
/* rgb */ color: rgb(78, 36, 151);
/* oklch */ color: oklch(39.2% 0.174 293.3);
Tailwind
colors: {
  custom: {
    50: '#8763b7',
    500: '#4e2497',
    950: '#000000',
  },
}
SCSS
$custom: #4e2497;
$custom-light: #8763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2497",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 261.913,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39156,
    "c": 0.17352,
    "h": 293.3
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#4E2497
secondary
#99BD5A
accent
#E543AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2497

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

Preview Lab → · Contrast checker → · Palette generator →

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