#4D397C#4D397C

#4D397C is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.1% C 0.110 H 294.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4D397C
RGBrgb(77, 57, 124)
HSLhsl(258, 37%, 35%)
HSVhsv(258, 54%, 49%)
CMYKcmyk(37.9%, 54%, 0%, 51.4%)
CIE-LABlab(29.31, 25.28, -35.16)
CIE-LCHlch(29.31, 43.31, 305.72°)
OKLaboklab(40.1% 0.0458 -0.0995)
OKLCHoklch(40.1% 0.11 294.7)
XYZxyz(8.1608, 5.9591, 19.7851)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D397C #687C39
analogous
#39467C #4D397C #6E397C
triadic
#4D397C #7C4D39 #397C4D
tetradic
#4D397C #7C3946 #687C39 #397C6E
square
#4D397C #7C3946 #687C39 #397C6E
split-complementary
#4D397C #7C6E39 #467C39
monochromatic
#191228 #332652 #4D397C #674CA6 #8871BE

Accessibility & contrast

On white

9.58
#4D397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D397C
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D397C#FFFFFF#000000##FFFFFF
##4D397C1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467E
Deuteranopia (green-blind)
#23447A
Tritanopia (blue-blind)
#424655
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d397c;
/* rgb */ color: rgb(77, 57, 124);
/* oklch */ color: oklch(40.1% 0.110 294.7);
Tailwind
colors: {
  custom: {
    50: '#8270a2',
    500: '#4d397c',
    950: '#000000',
  },
}
SCSS
$custom: #4d397c;
$custom-light: #8270a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d397c",
  "rgb": {
    "r": 77,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 257.91,
    "s": 37.017,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40102,
    "c": 0.10956,
    "h": 294.7
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#4D397C
secondary
#95A76A
accent
#CD5BAB
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4D397C

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

Preview Lab → · Contrast checker → · Palette generator →

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