#4D3C97#4D3C97

#4D3C97 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.6% C 0.143 H 287.3°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4D3C97
RGBrgb(77, 60, 151)
HSLhsl(251, 43%, 41%)
HSVhsv(251, 60%, 59%)
CMYKcmyk(49%, 60.3%, 0%, 40.8%)
CIE-LABlab(31.91, 31.59, -47.68)
CIE-LCHlch(31.91, 57.19, 303.52°)
OKLaboklab(42.62% 0.0425 -0.1363)
OKLCHoklch(42.62% 0.143 287.3)
XYZxyz(10.2607, 7.0434, 30.0910)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3C97 #86973C
analogous
#3C5997 #4D3C97 #7B3C97
triadic
#4D3C97 #974D3C #3C974D
tetradic
#4D3C97 #973C59 #86973C #3C977B
square
#4D3C97 #973C59 #86973C #3C977B
split-complementary
#4D3C97 #977B3C #59973C
monochromatic
#20193F #372B6B #4D3C97 #6855BB #8F81CD

Accessibility & contrast

On white

8.72
#4D3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4D3C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3C97
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3C97#FFFFFF#000000##FFFFFF
##4D3C971.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#345163
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d3c97;
/* rgb */ color: rgb(77, 60, 151);
/* oklch */ color: oklch(42.6% 0.143 287.3);
Tailwind
colors: {
  custom: {
    50: '#8572b6',
    500: '#4d3c97',
    950: '#000000',
  },
}
SCSS
$custom: #4d3c97;
$custom-light: #8572b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3c97",
  "rgb": {
    "r": 77,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 251.209,
    "s": 43.128,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42617,
    "c": 0.14275,
    "h": 287.3
  },
  "luminance": 0.07044
}

Semantic roles & 50–950 ramp

primary
#4D3C97
secondary
#ABB778
accent
#D355BB
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #4D3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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