#4D309D#4D309D

#4D309D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.167 H 289.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4D309D
RGBrgb(77, 48, 157)
HSLhsl(256, 53%, 40%)
HSVhsv(256, 69%, 62%)
CMYKcmyk(51%, 69.4%, 0%, 38.4%)
CIE-LABlab(29.73, 40.52, -54.87)
CIE-LCHlch(29.73, 68.21, 306.44°)
OKLaboklab(41.19% 0.0547 -0.1574)
OKLCHoklch(41.19% 0.167 289.2)
XYZxyz(10.2016, 6.1256, 32.5366)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D309D #809D30
analogous
#304A9D #4D309D #83309D
triadic
#4D309D #9D4D30 #309D4D
tetradic
#4D309D #9D304A #809D30 #309D83
square
#4D309D #9D304A #809D30 #309D83
split-complementary
#4D309D #9D8330 #4A9D30
monochromatic
#1F133F #36226E #4D309D #6744C6 #8D73D4

Accessibility & contrast

On white

9.44
#4D309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D309D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D309D#FFFFFF#000000##FFFFFF
##4D309D1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#314C62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d309d;
/* rgb */ color: rgb(77, 48, 157);
/* oklch */ color: oklch(41.2% 0.167 289.2);
Tailwind
colors: {
  custom: {
    50: '#876bbb',
    500: '#4d309d',
    950: '#000000',
  },
}
SCSS
$custom: #4d309d;
$custom-light: #876bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d309d",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 255.963,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41185,
    "c": 0.16667,
    "h": 289.2
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#4D309D
secondary
#A7BC6D
accent
#DD4BB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D309D

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

Preview Lab → · Contrast checker → · Palette generator →

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