#4D3A95#4D3A95

#4D3A95 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.1% C 0.143 H 288.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#4D3A95
RGBrgb(77, 58, 149)
HSLhsl(253, 44%, 41%)
HSVhsv(253, 61%, 58%)
CMYKcmyk(48.3%, 61.1%, 0%, 41.6%)
CIE-LABlab(31.29, 32.20, -47.46)
CIE-LCHlch(31.29, 57.35, 304.16°)
OKLaboklab(42.12% 0.0449 -0.1356)
OKLCHoklch(42.12% 0.143 288.3)
XYZxyz(9.9969, 6.7734, 29.2086)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3A95 #82953A
analogous
#3A5595 #4D3A95 #7A3A95
triadic
#4D3A95 #954D3A #3A954D
tetradic
#4D3A95 #953A55 #82953A #3A957A
square
#4D3A95 #953A55 #82953A #3A957A
split-complementary
#4D3A95 #957A3A #55953A
monochromatic
#1F183D #362969 #4D3A95 #6751BB #8E7DCC

Accessibility & contrast

On white

8.92
#4D3A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4D3A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3A95
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3A95#FFFFFF#000000##FFFFFF
##4D3A951.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#354F62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d3a95;
/* rgb */ color: rgb(77, 58, 149);
/* oklch */ color: oklch(42.1% 0.143 288.3);
Tailwind
colors: {
  custom: {
    50: '#8571b5',
    500: '#4d3a95',
    950: '#000000',
  },
}
SCSS
$custom: #4d3a95;
$custom-light: #8571b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3a95",
  "rgb": {
    "r": 77,
    "g": 58,
    "b": 149
  },
  "hsl": {
    "h": 252.527,
    "s": 43.961,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42115,
    "c": 0.14288,
    "h": 288.3
  },
  "luminance": 0.06774
}

Semantic roles & 50–950 ramp

primary
#4D3A95
secondary
#A8B675
accent
#D454B9
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4D3A95

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

Preview Lab → · Contrast checker → · Palette generator →

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