#4D388D#4D388D

#4D388D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.2% C 0.135 H 290.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4D388D
RGBrgb(77, 56, 141)
HSLhsl(255, 43%, 39%)
HSVhsv(255, 60%, 55%)
CMYKcmyk(45.4%, 60.3%, 0%, 44.7%)
CIE-LABlab(30.23, 30.99, -44.26)
CIE-LCHlch(30.23, 54.03, 305.00°)
OKLaboklab(41.15% 0.0475 -0.1262)
OKLCHoklch(41.15% 0.135 290.6)
XYZxyz(9.2811, 6.3289, 25.9267)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D388D #788D38
analogous
#384D8D #4D388D #77388D
triadic
#4D388D #8D4D38 #388D4D
tetradic
#4D388D #8D384D #788D38 #388D77
square
#4D388D #8D384D #788D38 #388D77
split-complementary
#4D388D #8D7738 #4D8D38
monochromatic
#1D1535 #352761 #4D388D #664BB7 #8B77C9

Accessibility & contrast

On white

9.27
#4D388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D388D
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D388D#FFFFFF#000000##FFFFFF
##4D388D1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#02458B
Tritanopia (blue-blind)
#3A4B5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d388d;
/* rgb */ color: rgb(77, 56, 141);
/* oklch */ color: oklch(41.2% 0.135 290.6);
Tailwind
colors: {
  custom: {
    50: '#846faf',
    500: '#4d388d',
    950: '#000000',
  },
}
SCSS
$custom: #4d388d;
$custom-light: #846faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d388d",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 254.824,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41152,
    "c": 0.13488,
    "h": 290.6
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#4D388D
secondary
#A1B26F
accent
#D355B4
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D388D

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

Preview Lab → · Contrast checker → · Palette generator →

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