#4D3E8A#4D3E8A

#4D3E8A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.0% C 0.122 H 289.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4D3E8A
RGBrgb(77, 62, 138)
HSLhsl(252, 38%, 39%)
HSVhsv(252, 55%, 54%)
CMYKcmyk(44.2%, 55.1%, 0%, 45.9%)
CIE-LABlab(31.48, 26.31, -40.39)
CIE-LCHlch(31.48, 48.21, 303.08°)
OKLaboklab(42.01% 0.0399 -0.1148)
OKLCHoklch(42.01% 0.122 289.2)
XYZxyz(9.3694, 6.8577, 24.8698)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3E8A #7B8A3E
analogous
#3E558A #4D3E8A #733E8A
triadic
#4D3E8A #8A4D3E #3E8A4D
tetradic
#4D3E8A #8A3E55 #7B8A3E #3E8A73
square
#4D3E8A #8A3E55 #7B8A3E #3E8A73
split-complementary
#4D3E8A #8A733E #558A3E
monochromatic
#1E1836 #352B60 #4D3E8A #6653B2 #8C7EC5

Accessibility & contrast

On white

8.85
#4D3E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4D3E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3E8A
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3E8A#FFFFFF#000000##FFFFFF
##4D3E8A1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8D
Deuteranopia (green-blind)
#1B4888
Tritanopia (blue-blind)
#3B4E5E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d3e8a;
/* rgb */ color: rgb(77, 62, 138);
/* oklch */ color: oklch(42.0% 0.122 289.2);
Tailwind
colors: {
  custom: {
    50: '#8373ad',
    500: '#4d3e8a',
    950: '#000000',
  },
}
SCSS
$custom: #4d3e8a;
$custom-light: #8373ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3e8a",
  "rgb": {
    "r": 77,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 251.842,
    "s": 38,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42011,
    "c": 0.12159,
    "h": 289.2
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#4D3E8A
secondary
#A3AF75
accent
#CE5AB7
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4D3E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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