#4D339A#4D339A

#4D339A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.159 H 289.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4D339A
RGBrgb(77, 51, 154)
HSLhsl(255, 50%, 40%)
HSVhsv(255, 67%, 60%)
CMYKcmyk(50%, 66.9%, 0%, 39.6%)
CIE-LABlab(30.10, 37.91, -52.43)
CIE-LCHlch(30.10, 64.70, 305.87°)
OKLaboklab(41.38% 0.0521 -0.1503)
OKLCHoklch(41.38% 0.159 289.1)
XYZxyz(10.0754, 6.2781, 31.2465)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D339A #809A33
analogous
#334C9A #4D339A #81339A
triadic
#4D339A #9A4D33 #339A4D
tetradic
#4D339A #9A334C #809A33 #339A81
square
#4D339A #9A334C #809A33 #339A81
split-complementary
#4D339A #9A8133 #4C9A33
monochromatic
#1F153E #36246C #4D339A #6748C2 #8D76D2

Accessibility & contrast

On white

9.31
#4D339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4D339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D339A
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D339A#FFFFFF#000000##FFFFFF
##4D339A1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#334C62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d339a;
/* rgb */ color: rgb(77, 51, 154);
/* oklch */ color: oklch(41.4% 0.159 289.1);
Tailwind
colors: {
  custom: {
    50: '#866cb9',
    500: '#4d339a',
    950: '#000000',
  },
}
SCSS
$custom: #4d339a;
$custom-light: #866cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d339a",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 255.146,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41378,
    "c": 0.15906,
    "h": 289.1
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#4D339A
secondary
#A7BA6F
accent
#DA4EB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D339A

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

Preview Lab → · Contrast checker → · Palette generator →

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