#4E316B#4E316B

#4E316B is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.6% C 0.100 H 305.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4E316B
RGBrgb(78, 49, 107)
HSLhsl(270, 37%, 31%)
HSVhsv(270, 54%, 42%)
CMYKcmyk(27.1%, 54.2%, 0%, 58%)
CIE-LABlab(26.38, 25.83, -29.02)
CIE-LCHlch(26.38, 38.85, 311.66°)
OKLaboklab(37.61% 0.0575 -0.0815)
OKLCHoklch(37.61% 0.1 305.2)
XYZxyz(6.8935, 4.8779, 14.4854)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E316B #4E6B31
analogous
#31316B #4E316B #6B316B
triadic
#4E316B #6B4E31 #316B4E
tetradic
#4E316B #6B3131 #4E6B31 #316B6B
square
#4E316B #6B3131 #4E6B31 #316B6B
split-complementary
#4E316B #6B6B31 #316B31
monochromatic
#110B17 #2F1E41 #4E316B #6D4495 #8B60B6

Accessibility & contrast

On white

10.63
#4E316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E316B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E316B
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E316B#FFFFFF#000000##FFFFFF
##4E316B1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3E6D
Deuteranopia (green-blind)
#283F6A
Tritanopia (blue-blind)
#493B49
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e316b;
/* rgb */ color: rgb(78, 49, 107);
/* oklch */ color: oklch(37.6% 0.100 305.2);
Tailwind
colors: {
  custom: {
    50: '#816a96',
    500: '#4e316b',
    950: '#000000',
  },
}
SCSS
$custom: #4e316b;
$custom-light: #816a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e316b",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 270,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37612,
    "c": 0.09973,
    "h": 305.2
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#4E316B
secondary
#7C9C5C
accent
#CD5B94
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E316B

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

Preview Lab → · Contrast checker → · Palette generator →

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