#4D3A8A#4D3A8A

#4D3A8A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.128 H 290.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4D3A8A
RGBrgb(77, 58, 138)
HSLhsl(254, 41%, 38%)
HSVhsv(254, 58%, 54%)
CMYKcmyk(44.2%, 58%, 0%, 45.9%)
CIE-LABlab(30.49, 28.84, -41.98)
CIE-LCHlch(30.49, 50.93, 304.49°)
OKLaboklab(41.28% 0.0451 -0.1195)
OKLCHoklch(41.28% 0.128 290.7)
XYZxyz(9.1598, 6.4386, 24.8000)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3A8A #778A3A
analogous
#3A4F8A #4D3A8A #753A8A
triadic
#4D3A8A #8A4D3A #3A8A4D
tetradic
#4D3A8A #8A3A4F #778A3A #3A8A75
square
#4D3A8A #8A3A4F #778A3A #3A8A75
split-complementary
#4D3A8A #8A753A #4F8A3A
monochromatic
#1D1634 #35285F #4D3A8A #664DB4 #8B78C6

Accessibility & contrast

On white

9.18
#4D3A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D3A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3A8A
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3A8A#FFFFFF#000000##FFFFFF
##4D3A8A1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C498D
Deuteranopia (green-blind)
#114688
Tritanopia (blue-blind)
#3C4B5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d3a8a;
/* rgb */ color: rgb(77, 58, 138);
/* oklch */ color: oklch(41.3% 0.128 290.7);
Tailwind
colors: {
  custom: {
    50: '#8371ad',
    500: '#4d3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #4d3a8a;
$custom-light: #8371ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3a8a",
  "rgb": {
    "r": 77,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 254.25,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4128,
    "c": 0.12774,
    "h": 290.7
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#4D3A8A
secondary
#A1B070
accent
#D157B4
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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