#4E339E#4E339E

#4E339E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.8% C 0.164 H 288.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4E339E
RGBrgb(78, 51, 158)
HSLhsl(255, 51%, 41%)
HSVhsv(255, 68%, 62%)
CMYKcmyk(50.6%, 67.7%, 0%, 38%)
CIE-LABlab(30.53, 39.30, -54.16)
CIE-LCHlch(30.53, 66.92, 305.97°)
OKLaboklab(41.81% 0.053 -0.1553)
OKLCHoklch(41.81% 0.164 288.9)
XYZxyz(10.4955, 6.4555, 33.0341)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E339E #839E33
analogous
#334D9E #4E339E #83339E
triadic
#4E339E #9E4E33 #339E4E
tetradic
#4E339E #9E334D #839E33 #339E83
square
#4E339E #9E334D #839E33 #339E83
split-complementary
#4E339E #9E8333 #4D9E33
monochromatic
#201541 #372470 #4E339E #694AC4 #8F78D3

Accessibility & contrast

On white

9.17
#4E339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E339E
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E339E#FFFFFF#000000##FFFFFF
##4E339E1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e339e;
/* rgb */ color: rgb(78, 51, 158);
/* oklch */ color: oklch(41.8% 0.164 288.9);
Tailwind
colors: {
  custom: {
    50: '#876cbb',
    500: '#4e339e',
    950: '#000000',
  },
}
SCSS
$custom: #4e339e;
$custom-light: #876cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e339e",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 255.14,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41814,
    "c": 0.16412,
    "h": 288.9
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#4E339E
secondary
#A9BC71
accent
#DB4DB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E339E

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

Preview Lab → · Contrast checker → · Palette generator →

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