#4E315B#4E315B

#4E315B is a dark, moderate purple. Relative luminance 0.046; OKLCH L 36.6% C 0.078 H 314.8°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4E315B
RGBrgb(78, 49, 91)
HSLhsl(281, 30%, 27%)
HSVhsv(281, 46%, 36%)
CMYKcmyk(14.3%, 46.2%, 0%, 64.3%)
CIE-LABlab(25.48, 21.71, -20.07)
CIE-LCHlch(25.48, 29.56, 317.25°)
OKLaboklab(36.64% 0.055 -0.0555)
OKLCHoklch(36.64% 0.078 314.8)
XYZxyz(6.1282, 4.5718, 10.4551)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E315B #3E5B31
analogous
#39315B #4E315B #5B3153
triadic
#4E315B #5B4E31 #315B4E
tetradic
#4E315B #5B3931 #3E5B31 #31535B
square
#4E315B #5B3931 #3E5B31 #31535B
split-complementary
#4E315B #535B31 #315B39
monochromatic
#110B14 #2C1C33 #4E315B #704683 #915EA8

Accessibility & contrast

On white

10.97
#4E315B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E315B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E315B
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E315B#FFFFFF#000000##FFFFFF
##4E315B1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293B5D
Deuteranopia (green-blind)
#313D5A
Tritanopia (blue-blind)
#4D3741
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e315b;
/* rgb */ color: rgb(78, 49, 91);
/* oklch */ color: oklch(36.6% 0.078 314.8);
Tailwind
colors: {
  custom: {
    50: '#806a89',
    500: '#4e315b',
    950: '#000000',
  },
}
SCSS
$custom: #4e315b;
$custom-light: #806a89;
$custom-dark: #000000;
JSON
{
  "hex": "#4e315b",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 281.429,
    "s": 30,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.07818,
    "h": 314.8
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#4E315B
secondary
#6B8C5C
accent
#C66281
background
#F7F6F8
surface
#EEEBF0
border
#C9C6CB
text
#0A060B
muted
#7C7A7C

Preview Lab

Preview with #4E315B

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

Preview Lab → · Contrast checker → · Palette generator →

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