#4E339D#4E339D

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

Color values

HEX#4E339D
RGBrgb(78, 51, 157)
HSLhsl(255, 51%, 41%)
HSVhsv(255, 68%, 62%)
CMYKcmyk(50.3%, 67.5%, 0%, 38.4%)
CIE-LABlab(30.45, 39.00, -53.69)
CIE-LCHlch(30.45, 66.36, 306.00°)
OKLaboklab(41.73% 0.0532 -0.1539)
OKLCHoklch(41.73% 0.163 289.1)
XYZxyz(10.4098, 6.4212, 32.5827)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E339D #829D33
analogous
#334D9D #4E339D #83339D
triadic
#4E339D #9D4E33 #339D4E
tetradic
#4E339D #9D334D #829D33 #339D83
square
#4E339D #9D334D #829D33 #339D83
split-complementary
#4E339D #9D8333 #4D9D33
monochromatic
#201541 #37246F #4E339D #6849C4 #8F77D3

Accessibility & contrast

On white

9.19
#4E339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E339D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E339D#FFFFFF#000000##FFFFFF
##4E339D1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#334D63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e339d;
/* rgb */ color: rgb(78, 51, 157);
/* oklch */ color: oklch(41.7% 0.163 289.1);
Tailwind
colors: {
  custom: {
    50: '#876cbb',
    500: '#4e339d',
    950: '#000000',
  },
}
SCSS
$custom: #4e339d;
$custom-light: #876cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e339d",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 255.283,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41729,
    "c": 0.16285,
    "h": 289.1
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#4E339D
secondary
#A8BB70
accent
#DA4DB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E339D

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

Preview Lab → · Contrast checker → · Palette generator →

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