#4E339F#4E339F

#4E339F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.165 H 288.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4E339F
RGBrgb(78, 51, 159)
HSLhsl(255, 51%, 41%)
HSVhsv(255, 68%, 62%)
CMYKcmyk(50.9%, 67.9%, 0%, 37.6%)
CIE-LABlab(30.62, 39.60, -54.63)
CIE-LCHlch(30.62, 67.47, 305.94°)
OKLaboklab(41.9% 0.0529 -0.1567)
OKLCHoklch(41.9% 0.165 288.7)
XYZxyz(10.5819, 6.4901, 33.4893)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E339F #849F33
analogous
#334E9F #4E339F #84339F
triadic
#4E339F #9F4E33 #339F4E
tetradic
#4E339F #9F334E #849F33 #339F84
square
#4E339F #9F334E #849F33 #339F84
split-complementary
#4E339F #9F8433 #4E9F33
monochromatic
#211542 #372471 #4E339F #694AC5 #8F79D4

Accessibility & contrast

On white

9.14
#4E339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4E339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E339F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E339F#FFFFFF#000000##FFFFFF
##4E339F1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#314E64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e339f;
/* rgb */ color: rgb(78, 51, 159);
/* oklch */ color: oklch(41.9% 0.165 288.7);
Tailwind
colors: {
  custom: {
    50: '#876dbc',
    500: '#4e339f',
    950: '#000000',
  },
}
SCSS
$custom: #4e339f;
$custom-light: #876dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e339f",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 255,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.419,
    "c": 0.16539,
    "h": 288.7
  },
  "luminance": 0.06491
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E339F

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

Preview Lab → · Contrast checker → · Palette generator →

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