#4E318D#4E318D

#4E318D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.145 H 293.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4E318D
RGBrgb(78, 49, 141)
HSLhsl(259, 48%, 37%)
HSVhsv(259, 65%, 55%)
CMYKcmyk(44.7%, 65.2%, 0%, 44.7%)
CIE-LABlab(28.74, 35.42, -46.66)
CIE-LCHlch(28.74, 58.58, 307.21°)
OKLaboklab(40.1% 0.0573 -0.1332)
OKLCHoklch(40.1% 0.145 293.3)
XYZxyz(9.0466, 5.7392, 25.8253)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E318D #708D31
analogous
#31428D #4E318D #7C318D
triadic
#4E318D #8D4E31 #318D4E
tetradic
#4E318D #8D3142 #708D31 #318D7C
square
#4E318D #8D3142 #708D31 #318D7C
split-complementary
#4E318D #8D7C31 #428D31
monochromatic
#1C1132 #352160 #4E318D #6741BA #8B6CCC

Accessibility & contrast

On white

9.78
#4E318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E318D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E318D#FFFFFF#000000##FFFFFF
##4E318D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#3C465A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e318d;
/* rgb */ color: rgb(78, 49, 141);
/* oklch */ color: oklch(40.1% 0.145 293.3);
Tailwind
colors: {
  custom: {
    50: '#856baf',
    500: '#4e318d',
    950: '#000000',
  },
}
SCSS
$custom: #4e318d;
$custom-light: #856baf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e318d",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 258.913,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40096,
    "c": 0.14503,
    "h": 293.3
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#4E318D
secondary
#9BB466
accent
#D850AD
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E318D

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

Preview Lab → · Contrast checker → · Palette generator →

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