#4E315E#4E315E

#4E315E is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.8% C 0.082 H 312.6°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#4E315E
RGBrgb(78, 49, 94)
HSLhsl(279, 31%, 28%)
HSVhsv(279, 48%, 37%)
CMYKcmyk(17%, 47.9%, 0%, 63.1%)
CIE-LABlab(25.64, 22.45, -21.78)
CIE-LCHlch(25.64, 31.28, 315.87°)
OKLaboklab(36.81% 0.0556 -0.0605)
OKLCHoklch(36.81% 0.082 312.6)
XYZxyz(6.2602, 4.6246, 11.1504)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E315E #415E31
analogous
#37315E #4E315E #5E3157
triadic
#4E315E #5E4E31 #315E4E
tetradic
#4E315E #5E3731 #415E31 #31575E
square
#4E315E #5E3731 #415E31 #31575E
split-complementary
#4E315E #575E31 #315E37
monochromatic
#110A14 #2D1C36 #4E315E #6F4686 #905EAB

Accessibility & contrast

On white

10.91
#4E315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E315E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E315E#FFFFFF#000000##FFFFFF
##4E315E1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283B60
Deuteranopia (green-blind)
#2F3D5D
Tritanopia (blue-blind)
#4D3843
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e315e;
/* rgb */ color: rgb(78, 49, 94);
/* oklch */ color: oklch(36.8% 0.082 312.6);
Tailwind
colors: {
  custom: {
    50: '#816a8c',
    500: '#4e315e',
    950: '#000000',
  },
}
SCSS
$custom: #4e315e;
$custom-light: #816a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e315e",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 278.667,
    "s": 31.469,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36812,
    "c": 0.08217,
    "h": 312.6
  },
  "luminance": 0.04624
}

Semantic roles & 50–950 ramp

primary
#4E315E
secondary
#6E8F5C
accent
#C86085
background
#F7F6F8
surface
#EEEBF0
border
#C9C6CB
text
#0A060C
muted
#7C7A7D

Preview Lab

Preview with #4E315E

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

Preview Lab → · Contrast checker → · Palette generator →

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