#4D319A#4D319A

#4D319A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.162 H 289.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4D319A
RGBrgb(77, 49, 154)
HSLhsl(256, 52%, 40%)
HSVhsv(256, 68%, 60%)
CMYKcmyk(50%, 68.2%, 0%, 39.6%)
CIE-LABlab(29.68, 39.06, -53.12)
CIE-LCHlch(29.68, 65.94, 306.33°)
OKLaboklab(41.07% 0.0542 -0.1523)
OKLCHoklch(41.07% 0.162 289.6)
XYZxyz(9.9899, 6.1071, 31.2180)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D319A #7E9A31
analogous
#314A9A #4D319A #82319A
triadic
#4D319A #9A4D31 #319A4D
tetradic
#4D319A #9A314A #7E9A31 #319A82
square
#4D319A #9A314A #7E9A31 #319A82
split-complementary
#4D319A #9A8231 #4A9A31
monochromatic
#1F133D #36226C #4D319A #6645C4 #8C73D2

Accessibility & contrast

On white

9.45
#4D319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4D319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D319A
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D319A#FFFFFF#000000##FFFFFF
##4D319A1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#334B61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d319a;
/* rgb */ color: rgb(77, 49, 154);
/* oklch */ color: oklch(41.1% 0.162 289.6);
Tailwind
colors: {
  custom: {
    50: '#866bb9',
    500: '#4d319a',
    950: '#000000',
  },
}
SCSS
$custom: #4d319a;
$custom-light: #866bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d319a",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 256,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41073,
    "c": 0.16165,
    "h": 289.6
  },
  "luminance": 0.06107
}

Semantic roles & 50–950 ramp

primary
#4D319A
secondary
#A6BA6C
accent
#DB4DB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D319A

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

Preview Lab → · Contrast checker → · Palette generator →

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