#4E339B#4E339B

#4E339B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.160 H 289.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4E339B
RGBrgb(78, 51, 155)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 67%, 61%)
CMYKcmyk(49.7%, 67.1%, 0%, 39.2%)
CIE-LABlab(30.29, 38.40, -52.74)
CIE-LCHlch(30.29, 65.24, 306.06°)
OKLaboklab(41.56% 0.0535 -0.1511)
OKLCHoklch(41.56% 0.16 289.5)
XYZxyz(10.2404, 6.3535, 31.6908)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E339B #809B33
analogous
#334C9B #4E339B #82339B
triadic
#4E339B #9B4E33 #339B4E
tetradic
#4E339B #9B334C #809B33 #339B82
square
#4E339B #9B334C #809B33 #339B82
split-complementary
#4E339B #9B8233 #4C9B33
monochromatic
#20153F #37246D #4E339B #6848C3 #8E76D2

Accessibility & contrast

On white

9.25
#4E339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E339B
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E339B#FFFFFF#000000##FFFFFF
##4E339B1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#344C62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e339b;
/* rgb */ color: rgb(78, 51, 155);
/* oklch */ color: oklch(41.6% 0.160 289.5);
Tailwind
colors: {
  custom: {
    50: '#876cb9',
    500: '#4e339b',
    950: '#000000',
  },
}
SCSS
$custom: #4e339b;
$custom-light: #876cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e339b",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 255.577,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4156,
    "c": 0.1603,
    "h": 289.5
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#4E339B
secondary
#A7BA6F
accent
#DA4EB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E339B

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

Preview Lab → · Contrast checker → · Palette generator →

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