#4E2596#4E2596

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

Color values

HEX#4E2596
RGBrgb(78, 37, 150)
HSLhsl(262, 60%, 37%)
HSVhsv(262, 75%, 59%)
CMYKcmyk(48%, 75.3%, 0%, 41.2%)
CIE-LABlab(27.14, 44.50, -54.81)
CIE-LCHlch(27.14, 70.60, 309.07°)
OKLaboklab(39.18% 0.068 -0.1572)
OKLCHoklch(39.18% 0.171 293.4)
XYZxyz(9.3070, 5.1445, 29.3509)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2596 #6D9625
analogous
#253596 #4E2596 #872596
triadic
#4E2596 #964E25 #25964E
tetradic
#4E2596 #962535 #6D9625 #259687
square
#4E2596 #962535 #6D9625 #259687
split-complementary
#4E2596 #968725 #359625
monochromatic
#1B0D34 #341965 #4E2596 #6831C7 #8A5ED7

Accessibility & contrast

On white

10.35
#4E2596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2596
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2596#FFFFFF#000000##FFFFFF
##4E25961.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2596;
/* rgb */ color: rgb(78, 37, 150);
/* oklch */ color: oklch(39.2% 0.171 293.4);
Tailwind
colors: {
  custom: {
    50: '#8764b6',
    500: '#4e2596',
    950: '#000000',
  },
}
SCSS
$custom: #4e2596;
$custom-light: #8764b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2596",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 261.77,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39185,
    "c": 0.17126,
    "h": 293.4
  },
  "luminance": 0.05145
}

Semantic roles & 50–950 ramp

primary
#4E2596
secondary
#99BC5B
accent
#E444AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2596

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

Preview Lab → · Contrast checker → · Palette generator →

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