#4E2496#4E2496

#4E2496 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.172 H 293.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4E2496
RGBrgb(78, 36, 150)
HSLhsl(262, 61%, 36%)
HSVhsv(262, 76%, 59%)
CMYKcmyk(48%, 76%, 0%, 41.2%)
CIE-LABlab(26.97, 44.99, -55.09)
CIE-LCHlch(26.97, 71.13, 309.23°)
OKLaboklab(39.06% 0.0689 -0.158)
OKLCHoklch(39.06% 0.172 293.6)
XYZxyz(9.2763, 5.0832, 29.3406)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2496 #6C9624
analogous
#243396 #4E2496 #872496
triadic
#4E2496 #964E24 #24964E
tetradic
#4E2496 #962433 #6C9624 #249687
square
#4E2496 #962433 #6C9624 #249687
split-complementary
#4E2496 #968724 #339624
monochromatic
#1B0C33 #341865 #4E2496 #6830C7 #8A5CD8

Accessibility & contrast

On white

10.41
#4E2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2496
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2496#FFFFFF#000000##FFFFFF
##4E24961.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#38435B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2496;
/* rgb */ color: rgb(78, 36, 150);
/* oklch */ color: oklch(39.1% 0.172 293.6);
Tailwind
colors: {
  custom: {
    50: '#8763b6',
    500: '#4e2496',
    950: '#000000',
  },
}
SCSS
$custom: #4e2496;
$custom-light: #8763b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2496",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 262.105,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39064,
    "c": 0.17236,
    "h": 293.6
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#4E2496
secondary
#98BD59
accent
#E443A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2496

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

Preview Lab → · Contrast checker → · Palette generator →

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