#4D339E#4D339E

#4D339E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.164 H 288.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4D339E
RGBrgb(77, 51, 158)
HSLhsl(255, 51%, 41%)
HSVhsv(255, 68%, 62%)
CMYKcmyk(51.3%, 67.7%, 0%, 38%)
CIE-LABlab(30.43, 39.12, -54.33)
CIE-LCHlch(30.43, 66.94, 305.75°)
OKLaboklab(41.72% 0.0516 -0.1558)
OKLCHoklch(41.72% 0.164 288.3)
XYZxyz(10.4142, 6.4136, 33.0303)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D339E #849E33
analogous
#334F9E #4D339E #82339E
triadic
#4D339E #9E4D33 #339E4D
tetradic
#4D339E #9E334F #849E33 #339E82
square
#4D339E #9E334F #849E33 #339E82
split-complementary
#4D339E #9E8233 #4F9E33
monochromatic
#201541 #362470 #4D339E #684AC4 #8E78D3

Accessibility & contrast

On white

9.20
#4D339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D339E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D339E#FFFFFF#000000##FFFFFF
##4D339E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#304E64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d339e;
/* rgb */ color: rgb(77, 51, 158);
/* oklch */ color: oklch(41.7% 0.164 288.3);
Tailwind
colors: {
  custom: {
    50: '#866cbc',
    500: '#4d339e',
    950: '#000000',
  },
}
SCSS
$custom: #4d339e;
$custom-light: #866cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d339e",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 254.579,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41718,
    "c": 0.16416,
    "h": 288.3
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D339E

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

Preview Lab → · Contrast checker → · Palette generator →

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