#4D3897#4D3897

#4D3897 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.9% C 0.148 H 288.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#4D3897
RGBrgb(77, 56, 151)
HSLhsl(253, 46%, 41%)
HSVhsv(253, 63%, 59%)
CMYKcmyk(49%, 62.9%, 0%, 40.8%)
CIE-LABlab(30.97, 34.04, -49.19)
CIE-LCHlch(30.97, 59.82, 304.68°)
OKLaboklab(41.93% 0.047 -0.1407)
OKLCHoklch(41.93% 0.148 288.5)
XYZxyz(10.0590, 6.6401, 30.0238)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3897 #829738
analogous
#385297 #4D3897 #7C3897
triadic
#4D3897 #974D38 #38974D
tetradic
#4D3897 #973852 #829738 #38977C
square
#4D3897 #973852 #829738 #38977C
split-complementary
#4D3897 #977C38 #529738
monochromatic
#1F173E #36276A #4D3897 #674FBE #8E7BCE

Accessibility & contrast

On white

9.02
#4D3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4D3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3897
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3897#FFFFFF#000000##FFFFFF
##4D38971.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#344E62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d3897;
/* rgb */ color: rgb(77, 56, 151);
/* oklch */ color: oklch(41.9% 0.148 288.5);
Tailwind
colors: {
  custom: {
    50: '#8570b6',
    500: '#4d3897',
    950: '#000000',
  },
}
SCSS
$custom: #4d3897;
$custom-light: #8570b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3897",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 253.263,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41934,
    "c": 0.14838,
    "h": 288.5
  },
  "luminance": 0.0664
}

Semantic roles & 50–950 ramp

primary
#4D3897
secondary
#A8B773
accent
#D652B9
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3897

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

Preview Lab → · Contrast checker → · Palette generator →

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