#4E2995#4E2995

#4E2995 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.165 H 293.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4E2995
RGBrgb(78, 41, 149)
HSLhsl(261, 57%, 37%)
HSVhsv(261, 72%, 58%)
CMYKcmyk(47.7%, 72.5%, 0%, 41.6%)
CIE-LABlab(27.78, 42.18, -53.16)
CIE-LCHlch(27.78, 67.86, 308.43°)
OKLaboklab(39.61% 0.0645 -0.1523)
OKLCHoklch(39.61% 0.165 293)
XYZxyz(9.3581, 5.3752, 28.9724)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2995 #709529
analogous
#293A95 #4E2995 #842995
triadic
#4E2995 #954E29 #29954E
tetradic
#4E2995 #95293A #709529 #299584
square
#4E2995 #95293A #709529 #299584
split-complementary
#4E2995 #958429 #3A9529
monochromatic
#1C0F35 #351C65 #4E2995 #6736C5 #8B64D4

Accessibility & contrast

On white

10.12
#4E2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2995
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2995#FFFFFF#000000##FFFFFF
##4E29951.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#38455C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2995;
/* rgb */ color: rgb(78, 41, 149);
/* oklch */ color: oklch(39.6% 0.165 293.0);
Tailwind
colors: {
  custom: {
    50: '#8666b5',
    500: '#4e2995',
    950: '#000000',
  },
}
SCSS
$custom: #4e2995;
$custom-light: #8666b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2995",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 260.556,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39607,
    "c": 0.16544,
    "h": 293
  },
  "luminance": 0.05376
}

Semantic roles & 50–950 ramp

primary
#4E2995
secondary
#9BBA60
accent
#E048AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2995

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

Preview Lab → · Contrast checker → · Palette generator →

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