#4E339C#4E339C

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

Color values

HEX#4E339C
RGBrgb(78, 51, 156)
HSLhsl(255, 51%, 41%)
HSVhsv(255, 67%, 61%)
CMYKcmyk(50%, 67.3%, 0%, 38.8%)
CIE-LABlab(30.37, 38.70, -53.21)
CIE-LCHlch(30.37, 65.80, 306.03°)
OKLaboklab(41.64% 0.0533 -0.1525)
OKLCHoklch(41.64% 0.162 289.3)
XYZxyz(10.3247, 6.3872, 32.1349)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E339C #819C33
analogous
#334C9C #4E339C #83339C
triadic
#4E339C #9C4E33 #339C4E
tetradic
#4E339C #9C334C #819C33 #339C83
square
#4E339C #9C334C #819C33 #339C83
split-complementary
#4E339C #9C8333 #4C9C33
monochromatic
#201540 #37246E #4E339C #6849C3 #8E77D3

Accessibility & contrast

On white

9.22
#4E339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E339C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E339C#FFFFFF#000000##FFFFFF
##4E339C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#334D63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e339c;
/* rgb */ color: rgb(78, 51, 156);
/* oklch */ color: oklch(41.6% 0.162 289.3);
Tailwind
colors: {
  custom: {
    50: '#876cba',
    500: '#4e339c',
    950: '#000000',
  },
}
SCSS
$custom: #4e339c;
$custom-light: #876cba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e339c",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 255.429,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41644,
    "c": 0.16158,
    "h": 289.3
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E339C

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

Preview Lab → · Contrast checker → · Palette generator →

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