#4E318E#4E318E

#4E318E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.146 H 293.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4E318E
RGBrgb(78, 49, 142)
HSLhsl(259, 49%, 37%)
HSVhsv(259, 65%, 56%)
CMYKcmyk(45.1%, 65.5%, 0%, 44.3%)
CIE-LABlab(28.82, 35.72, -47.15)
CIE-LCHlch(28.82, 59.15, 307.15°)
OKLaboklab(40.18% 0.0572 -0.1347)
OKLCHoklch(40.18% 0.146 293)
XYZxyz(9.1213, 5.7691, 26.2189)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E318E #718E31
analogous
#31428E #4E318E #7D318E
triadic
#4E318E #8E4E31 #318E4E
tetradic
#4E318E #8E3142 #718E31 #318E7D
square
#4E318E #8E3142 #718E31 #318E7D
split-complementary
#4E318E #8E7D31 #428E31
monochromatic
#1C1233 #352161 #4E318E #6741BB #8B6DCD

Accessibility & contrast

On white

9.75
#4E318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E318E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E318E#FFFFFF#000000##FFFFFF
##4E318E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3C475B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e318e;
/* rgb */ color: rgb(78, 49, 142);
/* oklch */ color: oklch(40.2% 0.146 293.0);
Tailwind
colors: {
  custom: {
    50: '#856bb0',
    500: '#4e318e',
    950: '#000000',
  },
}
SCSS
$custom: #4e318e;
$custom-light: #856bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e318e",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 258.71,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40176,
    "c": 0.14633,
    "h": 293
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#4E318E
secondary
#9CB467
accent
#D850AE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E318E

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

Preview Lab → · Contrast checker → · Palette generator →

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