#4E2595#4E2595

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

Color values

HEX#4E2595
RGBrgb(78, 37, 149)
HSLhsl(262, 60%, 36%)
HSVhsv(262, 75%, 58%)
CMYKcmyk(47.7%, 75.2%, 0%, 41.6%)
CIE-LABlab(27.05, 44.22, -54.34)
CIE-LCHlch(27.05, 70.06, 309.14°)
OKLaboklab(39.09% 0.0683 -0.1558)
OKLCHoklch(39.09% 0.17 293.7)
XYZxyz(9.2268, 5.1125, 28.9286)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2595 #6C9525
analogous
#253495 #4E2595 #862595
triadic
#4E2595 #954E25 #25954E
tetradic
#4E2595 #952534 #6C9525 #259586
square
#4E2595 #952534 #6C9525 #259586
split-complementary
#4E2595 #958625 #349525
monochromatic
#1B0D33 #341964 #4E2595 #6831C6 #8A5ED7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2595#FFFFFF#000000##FFFFFF
##4E25951.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)
#004198
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#39435B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2595;
/* rgb */ color: rgb(78, 37, 149);
/* oklch */ color: oklch(39.1% 0.170 293.7);
Tailwind
colors: {
  custom: {
    50: '#8764b5',
    500: '#4e2595',
    950: '#000000',
  },
}
SCSS
$custom: #4e2595;
$custom-light: #8764b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2595",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 261.964,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39094,
    "c": 0.1701,
    "h": 293.7
  },
  "luminance": 0.05113
}

Semantic roles & 50–950 ramp

primary
#4E2595
secondary
#98BC5A
accent
#E344A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2595

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

Preview Lab → · Contrast checker → · Palette generator →

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