#4D339F#4D339F

#4D339F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.165 H 288.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4D339F
RGBrgb(77, 51, 159)
HSLhsl(254, 51%, 41%)
HSVhsv(254, 68%, 62%)
CMYKcmyk(51.6%, 67.9%, 0%, 37.6%)
CIE-LABlab(30.52, 39.42, -54.80)
CIE-LCHlch(30.52, 67.50, 305.73°)
OKLaboklab(41.8% 0.0515 -0.1572)
OKLCHoklch(41.8% 0.165 288.1)
XYZxyz(10.5006, 6.4482, 33.4855)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D339F #859F33
analogous
#334F9F #4D339F #83339F
triadic
#4D339F #9F4D33 #339F4D
tetradic
#4D339F #9F334F #859F33 #339F83
square
#4D339F #9F334F #859F33 #339F83
split-complementary
#4D339F #9F8333 #4F9F33
monochromatic
#201542 #372471 #4D339F #684AC5 #8F79D4

Accessibility & contrast

On white

9.17
#4D339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D339F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D339F#FFFFFF#000000##FFFFFF
##4D339F1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#2F4E64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d339f;
/* rgb */ color: rgb(77, 51, 159);
/* oklch */ color: oklch(41.8% 0.165 288.1);
Tailwind
colors: {
  custom: {
    50: '#876cbc',
    500: '#4d339f',
    950: '#000000',
  },
}
SCSS
$custom: #4d339f;
$custom-light: #876cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d339f",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 254.444,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41804,
    "c": 0.16543,
    "h": 288.1
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#4D339F
secondary
#AABC71
accent
#DB4DB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D339F

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

Preview Lab → · Contrast checker → · Palette generator →

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