#4E339A#4E339A

#4E339A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.159 H 289.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4E339A
RGBrgb(78, 51, 154)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 67%, 60%)
CMYKcmyk(49.4%, 66.9%, 0%, 39.6%)
CIE-LABlab(30.21, 38.11, -52.26)
CIE-LCHlch(30.21, 64.68, 306.10°)
OKLaboklab(41.48% 0.0536 -0.1497)
OKLCHoklch(41.48% 0.159 289.7)
XYZxyz(10.1568, 6.3200, 31.2503)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E339A #7F9A33
analogous
#334C9A #4E339A #81339A
triadic
#4E339A #9A4E33 #339A4E
tetradic
#4E339A #9A334C #7F9A33 #339A81
square
#4E339A #9A334C #7F9A33 #339A81
split-complementary
#4E339A #9A8133 #4C9A33
monochromatic
#1F153E #37246C #4E339A #6848C2 #8E76D2

Accessibility & contrast

On white

9.28
#4E339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E339A
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E339A#FFFFFF#000000##FFFFFF
##4E339A1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#354C62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e339a;
/* rgb */ color: rgb(78, 51, 154);
/* oklch */ color: oklch(41.5% 0.159 289.7);
Tailwind
colors: {
  custom: {
    50: '#866cb9',
    500: '#4e339a',
    950: '#000000',
  },
}
SCSS
$custom: #4e339a;
$custom-light: #866cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e339a",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 255.728,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41476,
    "c": 0.15903,
    "h": 289.7
  },
  "luminance": 0.0632
}

Semantic roles & 50–950 ramp

primary
#4E339A
secondary
#A6BA6F
accent
#DA4EB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E339A

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

Preview Lab → · Contrast checker → · Palette generator →

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