#4D3188#4D3188

#4D3188 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.6% C 0.138 H 294.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4D3188
RGBrgb(77, 49, 136)
HSLhsl(259, 47%, 36%)
HSVhsv(259, 64%, 53%)
CMYKcmyk(43.4%, 64%, 0%, 46.7%)
CIE-LABlab(28.25, 33.74, -44.36)
CIE-LCHlch(28.25, 55.73, 307.26°)
OKLaboklab(39.59% 0.0562 -0.1265)
OKLCHoklch(39.59% 0.138 294)
XYZxyz(8.6016, 5.5518, 23.9062)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3188 #6C8831
analogous
#314188 #4D3188 #793188
triadic
#4D3188 #884D31 #31884D
tetradic
#4D3188 #883141 #6C8831 #318879
square
#4D3188 #883141 #6C8831 #318879
split-complementary
#4D3188 #887931 #418831
monochromatic
#1A112E #34215B #4D3188 #6641B5 #896AC9

Accessibility & contrast

On white

9.95
#4D3188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D3188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3188
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3188#FFFFFF#000000##FFFFFF
##4D31881.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#3D4557
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d3188;
/* rgb */ color: rgb(77, 49, 136);
/* oklch */ color: oklch(39.6% 0.138 294.0);
Tailwind
colors: {
  custom: {
    50: '#846aab',
    500: '#4d3188',
    950: '#000000',
  },
}
SCSS
$custom: #4d3188;
$custom-light: #846aab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3188",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 259.31,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39592,
    "c": 0.13847,
    "h": 294
  },
  "luminance": 0.05552
}

Semantic roles & 50–950 ramp

primary
#4D3188
secondary
#98B164
accent
#D751AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D3188

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

Preview Lab → · Contrast checker → · Palette generator →

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