#4E2E9E#4E2E9E

#4E2E9E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.170 H 289.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4E2E9E
RGBrgb(78, 46, 158)
HSLhsl(257, 55%, 40%)
HSVhsv(257, 71%, 62%)
CMYKcmyk(50.6%, 70.9%, 0%, 38%)
CIE-LABlab(29.52, 42.09, -55.82)
CIE-LCHlch(29.52, 69.91, 307.02°)
OKLaboklab(41.09% 0.0579 -0.1602)
OKLCHoklch(41.09% 0.17 289.9)
XYZxyz(10.2887, 6.0419, 32.9652)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E9E #7E9E2E
analogous
#2E469E #4E2E9E #862E9E
triadic
#4E2E9E #9E4E2E #2E9E4E
tetradic
#4E2E9E #9E2E46 #7E9E2E #2E9E86
square
#4E2E9E #9E2E46 #7E9E2E #2E9E86
split-complementary
#4E2E9E #9E862E #469E2E
monochromatic
#1F123F #37206F #4E2E9E #6841C8 #8E71D6

Accessibility & contrast

On white

9.51
#4E2E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E2E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E9E
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E9E#FFFFFF#000000##FFFFFF
##4E2E9E1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#324B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2e9e;
/* rgb */ color: rgb(78, 46, 158);
/* oklch */ color: oklch(41.1% 0.170 289.9);
Tailwind
colors: {
  custom: {
    50: '#8769bc',
    500: '#4e2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e9e;
$custom-light: #8769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e9e",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 257.143,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.41087,
    "c": 0.17033,
    "h": 289.9
  },
  "luminance": 0.06042
}

Semantic roles & 50–950 ramp

primary
#4E2E9E
secondary
#A6BD6B
accent
#DE4AB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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