#4E316F#4E316F

#4E316F is a dark, moderate violet. Relative luminance 0.050; OKLCH L 37.9% C 0.105 H 303.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4E316F
RGBrgb(78, 49, 111)
HSLhsl(268, 39%, 31%)
HSVhsv(268, 56%, 44%)
CMYKcmyk(29.7%, 55.9%, 0%, 56.5%)
CIE-LABlab(26.63, 26.91, -31.19)
CIE-LCHlch(26.63, 41.19, 310.78°)
OKLaboklab(37.88% 0.0578 -0.0878)
OKLCHoklch(37.88% 0.105 303.4)
XYZxyz(7.1088, 4.9640, 15.6195)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E316F #526F31
analogous
#31336F #4E316F #6D316F
triadic
#4E316F #6F4E31 #316F4E
tetradic
#4E316F #6F3133 #526F31 #316F6D
square
#4E316F #6F3133 #526F31 #316F6D
split-complementary
#4E316F #6F6D31 #336F31
monochromatic
#120C1A #301E45 #4E316F #6C4499 #8A61B9

Accessibility & contrast

On white

10.54
#4E316F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E316F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E316F
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E316F#FFFFFF#000000##FFFFFF
##4E316F1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3E71
Deuteranopia (green-blind)
#253F6E
Tritanopia (blue-blind)
#483D4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e316f;
/* rgb */ color: rgb(78, 49, 111);
/* oklch */ color: oklch(37.9% 0.105 303.4);
Tailwind
colors: {
  custom: {
    50: '#826a99',
    500: '#4e316f',
    950: '#000000',
  },
}
SCSS
$custom: #4e316f;
$custom-light: #826a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e316f",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 268.065,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37876,
    "c": 0.10516,
    "h": 303.4
  },
  "luminance": 0.04964
}

Semantic roles & 50–950 ramp

primary
#4E316F
secondary
#80A05C
accent
#CF5998
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E316F

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

Preview Lab → · Contrast checker → · Palette generator →

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