#4E318F#4E318F

#4E318F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.148 H 292.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4E318F
RGBrgb(78, 49, 143)
HSLhsl(259, 49%, 38%)
HSVhsv(259, 66%, 56%)
CMYKcmyk(45.5%, 65.7%, 0%, 43.9%)
CIE-LABlab(28.90, 36.01, -47.64)
CIE-LCHlch(28.90, 59.72, 307.09°)
OKLaboklab(40.26% 0.0571 -0.1361)
OKLCHoklch(40.26% 0.148 292.7)
XYZxyz(9.1968, 5.7992, 26.6161)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E318F #728F31
analogous
#31438F #4E318F #7D318F
triadic
#4E318F #8F4E31 #318F4E
tetradic
#4E318F #8F3143 #728F31 #318F7D
square
#4E318F #8F3143 #728F31 #318F7D
split-complementary
#4E318F #8F7D31 #438F31
monochromatic
#1C1234 #352161 #4E318F #6741BD #8B6DCD

Accessibility & contrast

On white

9.72
#4E318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E318F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E318F#FFFFFF#000000##FFFFFF
##4E318F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3B475B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e318f;
/* rgb */ color: rgb(78, 49, 143);
/* oklch */ color: oklch(40.3% 0.148 292.7);
Tailwind
colors: {
  custom: {
    50: '#856bb0',
    500: '#4e318f',
    950: '#000000',
  },
}
SCSS
$custom: #4e318f;
$custom-light: #856bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e318f",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 258.511,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40257,
    "c": 0.14761,
    "h": 292.7
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#4E318F
secondary
#9DB567
accent
#D94FAE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E318F

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

Preview Lab → · Contrast checker → · Palette generator →

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