#4D2388#4D2388

#4D2388 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.157 H 297.1°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4D2388
RGBrgb(77, 35, 136)
HSLhsl(265, 59%, 34%)
HSVhsv(265, 74%, 53%)
CMYKcmyk(43.4%, 74.3%, 0%, 46.7%)
CIE-LABlab(25.43, 41.48, -48.94)
CIE-LCHlch(25.43, 64.15, 310.28°)
OKLaboklab(37.57% 0.0717 -0.1399)
OKLCHoklch(37.57% 0.157 297.1)
XYZxyz(8.1044, 4.5573, 23.7404)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2388 #5E8823
analogous
#232C88 #4D2388 #7F2388
triadic
#4D2388 #884D23 #23884D
tetradic
#4D2388 #88232C #5E8823 #23887F
square
#4D2388 #88232C #5E8823 #23887F
split-complementary
#4D2388 #887F23 #2C8823
monochromatic
#160A27 #311657 #4D2388 #6930B9 #8853D3

Accessibility & contrast

On white

10.99
#4D2388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D2388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2388
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2388#FFFFFF#000000##FFFFFF
##4D23881.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#3E3D53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2388;
/* rgb */ color: rgb(77, 35, 136);
/* oklch */ color: oklch(37.6% 0.157 297.1);
Tailwind
colors: {
  custom: {
    50: '#8562ac',
    500: '#4d2388',
    950: '#000000',
  },
}
SCSS
$custom: #4d2388;
$custom-light: #8562ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2388",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 264.95,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37569,
    "c": 0.15724,
    "h": 297.1
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#4D2388
secondary
#8CB750
accent
#E246A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D2388

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

Preview Lab → · Contrast checker → · Palette generator →

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