#4E318A#4E318A

#4E318A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.9% C 0.141 H 294.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4E318A
RGBrgb(78, 49, 138)
HSLhsl(260, 48%, 37%)
HSVhsv(260, 64%, 54%)
CMYKcmyk(43.5%, 64.5%, 0%, 45.9%)
CIE-LABlab(28.51, 34.55, -45.17)
CIE-LCHlch(28.51, 56.87, 307.41°)
OKLaboklab(39.86% 0.0575 -0.1289)
OKLCHoklch(39.86% 0.141 294.1)
XYZxyz(8.8264, 5.6511, 24.6656)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E318A #6D8A31
analogous
#31408A #4E318A #7B318A
triadic
#4E318A #8A4E31 #318A4E
tetradic
#4E318A #8A3140 #6D8A31 #318A7B
square
#4E318A #8A3140 #6D8A31 #318A7B
split-complementary
#4E318A #8A7B31 #408A31
monochromatic
#1B1130 #34215D #4E318A #6841B7 #8A6BCA

Accessibility & contrast

On white

9.86
#4E318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E318A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E318A#FFFFFF#000000##FFFFFF
##4E318A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#3E4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e318a;
/* rgb */ color: rgb(78, 49, 138);
/* oklch */ color: oklch(39.9% 0.141 294.1);
Tailwind
colors: {
  custom: {
    50: '#846bad',
    500: '#4e318a',
    950: '#000000',
  },
}
SCSS
$custom: #4e318a;
$custom-light: #846bad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e318a",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 259.551,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39856,
    "c": 0.14114,
    "h": 294.1
  },
  "luminance": 0.05651
}

Semantic roles & 50–950 ramp

primary
#4E318A
secondary
#99B265
accent
#D751AB
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E318A

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

Preview Lab → · Contrast checker → · Palette generator →

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