#4E329E#4E329E

#4E329E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.165 H 289.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4E329E
RGBrgb(78, 50, 158)
HSLhsl(256, 52%, 41%)
HSVhsv(256, 68%, 62%)
CMYKcmyk(50.6%, 68.4%, 0%, 38%)
CIE-LABlab(30.33, 39.87, -54.50)
CIE-LCHlch(30.33, 67.53, 306.19°)
OKLaboklab(41.66% 0.054 -0.1563)
OKLCHoklch(41.66% 0.165 289.1)
XYZxyz(10.4523, 6.3691, 33.0197)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E329E #829E32
analogous
#324C9E #4E329E #84329E
triadic
#4E329E #9E4E32 #329E4E
tetradic
#4E329E #9E324C #829E32 #329E84
square
#4E329E #9E324C #829E32 #329E84
split-complementary
#4E329E #9E8432 #4C9E32
monochromatic
#201541 #372370 #4E329E #6848C5 #8F77D4

Accessibility & contrast

On white

9.23
#4E329E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E329E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E329E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E329E#FFFFFF#000000##FFFFFF
##4E329E1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#324D64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e329e;
/* rgb */ color: rgb(78, 50, 158);
/* oklch */ color: oklch(41.7% 0.165 289.1);
Tailwind
colors: {
  custom: {
    50: '#876cbc',
    500: '#4e329e',
    950: '#000000',
  },
}
SCSS
$custom: #4e329e;
$custom-light: #876cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e329e",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 158
  },
  "hsl": {
    "h": 255.556,
    "s": 51.923,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41664,
    "c": 0.16539,
    "h": 289.1
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#4E329E
secondary
#A8BC70
accent
#DB4CB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E329E

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

Preview Lab → · Contrast checker → · Palette generator →

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