#4D3190#4D3190

#4D3190 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.149 H 291.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4D3190
RGBrgb(77, 49, 144)
HSLhsl(258, 49%, 38%)
HSVhsv(258, 66%, 56%)
CMYKcmyk(46.5%, 66%, 0%, 43.5%)
CIE-LABlab(28.87, 36.09, -48.31)
CIE-LCHlch(28.87, 60.30, 306.77°)
OKLaboklab(40.24% 0.0555 -0.1381)
OKLCHoklch(40.24% 0.149 291.9)
XYZxyz(9.1915, 5.7877, 27.0130)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3190 #749031
analogous
#314490 #4D3190 #7C3190
triadic
#4D3190 #904D31 #31904D
tetradic
#4D3190 #903144 #749031 #31907C
square
#4D3190 #903144 #749031 #31907C
split-complementary
#4D3190 #907C31 #449031
monochromatic
#1C1235 #352162 #4D3190 #6541BE #8A6ECE

Accessibility & contrast

On white

9.73
#4D3190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4D3190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3190
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3190#FFFFFF#000000##FFFFFF
##4D31901.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#39485C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d3190;
/* rgb */ color: rgb(77, 49, 144);
/* oklch */ color: oklch(40.2% 0.149 291.9);
Tailwind
colors: {
  custom: {
    50: '#856bb1',
    500: '#4d3190',
    950: '#000000',
  },
}
SCSS
$custom: #4d3190;
$custom-light: #856bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3190",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 144
  },
  "hsl": {
    "h": 257.684,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40235,
    "c": 0.14888,
    "h": 291.9
  },
  "luminance": 0.05788
}

Semantic roles & 50–950 ramp

primary
#4D3190
secondary
#9EB568
accent
#D94FB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4D3190

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

Preview Lab → · Contrast checker → · Palette generator →

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