#4D318E#4D318E

#4D318E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.146 H 292.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4D318E
RGBrgb(77, 49, 142)
HSLhsl(258, 49%, 37%)
HSVhsv(258, 65%, 56%)
CMYKcmyk(45.8%, 65.5%, 0%, 44.3%)
CIE-LABlab(28.71, 35.50, -47.33)
CIE-LCHlch(28.71, 59.17, 306.88°)
OKLaboklab(40.07% 0.0557 -0.1353)
OKLCHoklch(40.07% 0.146 292.4)
XYZxyz(9.0400, 5.7271, 26.2151)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D318E #728E31
analogous
#31438E #4D318E #7C318E
triadic
#4D318E #8E4D31 #318E4D
tetradic
#4D318E #8E3143 #728E31 #318E7C
square
#4D318E #8E3143 #728E31 #318E7C
split-complementary
#4D318E #8E7C31 #438E31
monochromatic
#1C1233 #342161 #4D318E #6641BB #8A6DCD

Accessibility & contrast

On white

9.79
#4D318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D318E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D318E#FFFFFF#000000##FFFFFF
##4D318E1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3A475B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d318e;
/* rgb */ color: rgb(77, 49, 142);
/* oklch */ color: oklch(40.1% 0.146 292.4);
Tailwind
colors: {
  custom: {
    50: '#846bb0',
    500: '#4d318e',
    950: '#000000',
  },
}
SCSS
$custom: #4d318e;
$custom-light: #846bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d318e",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 258.065,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40072,
    "c": 0.14629,
    "h": 292.4
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#4D318E
secondary
#9DB467
accent
#D850AF
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D318E

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

Preview Lab → · Contrast checker → · Palette generator →

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