#4D3AAA#4D3AAA

#4D3AAA is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.8% C 0.171 H 284.6°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#4D3AAA
RGBrgb(77, 58, 170)
HSLhsl(250, 49%, 45%)
HSVhsv(250, 66%, 67%)
CMYKcmyk(54.7%, 65.9%, 0%, 33.3%)
CIE-LABlab(32.93, 38.71, -57.49)
CIE-LCHlch(32.93, 69.31, 303.96°)
OKLaboklab(43.83% 0.0432 -0.1651)
OKLCHoklch(43.83% 0.171 284.6)
XYZxyz(11.8271, 7.5055, 38.8479)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3AAA #97AA3A
analogous
#3A5FAA #4D3AAA #853AAA
triadic
#4D3AAA #AA4D3A #3AAA4D
tetradic
#4D3AAA #AA3A5F #97AA3A #3AAA85
square
#4D3AAA #AA3A5F #97AA3A #3AAA85
split-complementary
#4D3AAA #AA853A #5FAA3A
monochromatic
#241B4F #382A7C #4D3AAA #6D5AC7 #9588D6

Accessibility & contrast

On white

8.40
#4D3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4D3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3AAA
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3AAA#FFFFFF#000000##FFFFFF
##4D3AAA1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#24566D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d3aaa;
/* rgb */ color: rgb(77, 58, 170);
/* oklch */ color: oklch(43.8% 0.171 284.6);
Tailwind
colors: {
  custom: {
    50: '#8871c4',
    500: '#4d3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #4d3aaa;
$custom-light: #8871c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3aaa",
  "rgb": {
    "r": 77,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 250.179,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4383,
    "c": 0.17066,
    "h": 284.6
  },
  "luminance": 0.07506
}

Semantic roles & 50–950 ramp

primary
#4D3AAA
secondary
#B6C17F
accent
#D94FC1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4D3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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