#4D339C#4D339C

#4D339C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.162 H 288.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4D339C
RGBrgb(77, 51, 156)
HSLhsl(255, 51%, 41%)
HSVhsv(255, 67%, 61%)
CMYKcmyk(50.6%, 67.3%, 0%, 38.8%)
CIE-LABlab(30.27, 38.51, -53.38)
CIE-LCHlch(30.27, 65.83, 305.81°)
OKLaboklab(41.55% 0.0519 -0.1531)
OKLCHoklch(41.55% 0.162 288.7)
XYZxyz(10.2434, 6.3453, 32.1311)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D339C #829C33
analogous
#334D9C #4D339C #81339C
triadic
#4D339C #9C4D33 #339C4D
tetradic
#4D339C #9C334D #829C33 #339C81
square
#4D339C #9C334D #829C33 #339C81
split-complementary
#4D339C #9C8133 #4D9C33
monochromatic
#1F1540 #36246E #4D339C #6749C3 #8E77D3

Accessibility & contrast

On white

9.25
#4D339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D339C
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D339C#FFFFFF#000000##FFFFFF
##4D339C1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#314D63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d339c;
/* rgb */ color: rgb(77, 51, 156);
/* oklch */ color: oklch(41.5% 0.162 288.7);
Tailwind
colors: {
  custom: {
    50: '#866cba',
    500: '#4d339c',
    950: '#000000',
  },
}
SCSS
$custom: #4d339c;
$custom-light: #866cba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d339c",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 254.857,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41547,
    "c": 0.16161,
    "h": 288.7
  },
  "luminance": 0.06346
}

Semantic roles & 50–950 ramp

primary
#4D339C
secondary
#A8BB70
accent
#DA4EB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D339C

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

Preview Lab → · Contrast checker → · Palette generator →

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