#4E316A#4E316A

#4E316A is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.5% C 0.098 H 305.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4E316A
RGBrgb(78, 49, 106)
HSLhsl(271, 37%, 30%)
HSVhsv(271, 54%, 42%)
CMYKcmyk(26.4%, 53.8%, 0%, 58.4%)
CIE-LABlab(26.32, 25.56, -28.48)
CIE-LCHlch(26.32, 38.26, 311.91°)
OKLaboklab(37.55% 0.0574 -0.0799)
OKLCHoklch(37.55% 0.098 305.7)
XYZxyz(6.8412, 4.8570, 14.2100)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E316A #4D6A31
analogous
#31316A #4E316A #6A3169
triadic
#4E316A #6A4E31 #316A4E
tetradic
#4E316A #6A3131 #4D6A31 #31696A
square
#4E316A #6A3131 #4D6A31 #31696A
split-complementary
#4E316A #696A31 #316A31
monochromatic
#100A16 #2F1E40 #4E316A #6D4494 #8B60B5

Accessibility & contrast

On white

10.65
#4E316A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E316A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E316A
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E316A#FFFFFF#000000##FFFFFF
##4E316A1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203D6C
Deuteranopia (green-blind)
#283E69
Tritanopia (blue-blind)
#493B48
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e316a;
/* rgb */ color: rgb(78, 49, 106);
/* oklch */ color: oklch(37.5% 0.098 305.7);
Tailwind
colors: {
  custom: {
    50: '#816a95',
    500: '#4e316a',
    950: '#000000',
  },
}
SCSS
$custom: #4e316a;
$custom-light: #816a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e316a",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 270.526,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37547,
    "c": 0.09837,
    "h": 305.7
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#4E316A
secondary
#7B9B5C
accent
#CD5B93
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E316A

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

Preview Lab → · Contrast checker → · Palette generator →

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