#4E317A#4E317A

#4E317A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.120 H 299.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4E317A
RGBrgb(78, 49, 122)
HSLhsl(264, 43%, 34%)
HSVhsv(264, 60%, 48%)
CMYKcmyk(36.1%, 59.8%, 0%, 52.2%)
CIE-LABlab(27.36, 29.96, -37.03)
CIE-LCHlch(27.36, 47.63, 308.97°)
OKLaboklab(38.64% 0.0582 -0.1049)
OKLCHoklch(38.64% 0.12 299)
XYZxyz(7.7522, 5.2214, 19.0080)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E317A #5D7A31
analogous
#31387A #4E317A #72317A
triadic
#4E317A #7A4E31 #317A4E
tetradic
#4E317A #7A3138 #5D7A31 #317A72
square
#4E317A #7A3138 #5D7A31 #317A72
split-complementary
#4E317A #7A7231 #387A31
monochromatic
#160E23 #321F4E #4E317A #6A43A6 #8964C1

Accessibility & contrast

On white

10.27
#4E317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E317A
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E317A#FFFFFF#000000##FFFFFF
##4E317A1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D417C
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#444050
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e317a;
/* rgb */ color: rgb(78, 49, 122);
/* oklch */ color: oklch(38.6% 0.120 299.0);
Tailwind
colors: {
  custom: {
    50: '#836aa1',
    500: '#4e317a',
    950: '#000000',
  },
}
SCSS
$custom: #4e317a;
$custom-light: #836aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e317a",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 263.836,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.12,
    "h": 299
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#4E317A
secondary
#8BA85E
accent
#D255A1
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E317A

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

Preview Lab → · Contrast checker → · Palette generator →

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