#4D397D#4D397D

#4D397D is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.2% C 0.111 H 294.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4D397D
RGBrgb(77, 57, 125)
HSLhsl(258, 37%, 36%)
HSVhsv(258, 54%, 49%)
CMYKcmyk(38.4%, 54.4%, 0%, 51%)
CIE-LABlab(29.37, 25.58, -35.69)
CIE-LCHlch(29.37, 43.91, 305.63°)
OKLaboklab(40.17% 0.0459 -0.101)
OKLCHoklch(40.17% 0.111 294.4)
XYZxyz(8.2244, 5.9845, 20.1199)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D397D #697D39
analogous
#39477D #4D397D #6F397D
triadic
#4D397D #7D4D39 #397D4D
tetradic
#4D397D #7D3947 #697D39 #397D6F
square
#4D397D #7D3947 #697D39 #397D6F
split-complementary
#4D397D #7D6F39 #477D39
monochromatic
#191329 #332653 #4D397D #674CA7 #8872BF

Accessibility & contrast

On white

9.56
#4D397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D397D
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D397D#FFFFFF#000000##FFFFFF
##4D397D1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#22447B
Tritanopia (blue-blind)
#414755
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d397d;
/* rgb */ color: rgb(77, 57, 125);
/* oklch */ color: oklch(40.2% 0.111 294.4);
Tailwind
colors: {
  custom: {
    50: '#8270a3',
    500: '#4d397d',
    950: '#000000',
  },
}
SCSS
$custom: #4d397d;
$custom-light: #8270a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d397d",
  "rgb": {
    "r": 77,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 257.647,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4017,
    "c": 0.11098,
    "h": 294.4
  },
  "luminance": 0.05985
}

Semantic roles & 50–950 ramp

primary
#4D397D
secondary
#96A86A
accent
#CD5AAC
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4D397D

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

Preview Lab → · Contrast checker → · Palette generator →

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