#4D339D#4D339D

#4D339D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.163 H 288.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4D339D
RGBrgb(77, 51, 157)
HSLhsl(255, 51%, 41%)
HSVhsv(255, 68%, 62%)
CMYKcmyk(51%, 67.5%, 0%, 38.4%)
CIE-LABlab(30.35, 38.81, -53.86)
CIE-LCHlch(30.35, 66.39, 305.78°)
OKLaboklab(41.63% 0.0517 -0.1544)
OKLCHoklch(41.63% 0.163 288.5)
XYZxyz(10.3284, 6.3793, 32.5789)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D339D #839D33
analogous
#334E9D #4D339D #82339D
triadic
#4D339D #9D4D33 #339D4D
tetradic
#4D339D #9D334E #839D33 #339D82
square
#4D339D #9D334E #839D33 #339D82
split-complementary
#4D339D #9D8233 #4E9D33
monochromatic
#201541 #36246F #4D339D #6749C4 #8E77D3

Accessibility & contrast

On white

9.23
#4D339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D339D
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D339D#FFFFFF#000000##FFFFFF
##4D339D1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#314D63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d339d;
/* rgb */ color: rgb(77, 51, 157);
/* oklch */ color: oklch(41.6% 0.163 288.5);
Tailwind
colors: {
  custom: {
    50: '#866cbb',
    500: '#4d339d',
    950: '#000000',
  },
}
SCSS
$custom: #4d339d;
$custom-light: #866cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d339d",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 254.717,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41632,
    "c": 0.16289,
    "h": 288.5
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#4D339D
secondary
#A9BB70
accent
#DA4DB8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D339D

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

Preview Lab → · Contrast checker → · Palette generator →

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