#4D309F#4D309F

#4D309F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.169 H 288.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4D309F
RGBrgb(77, 48, 159)
HSLhsl(256, 54%, 41%)
HSVhsv(256, 70%, 62%)
CMYKcmyk(51.6%, 69.8%, 0%, 37.6%)
CIE-LABlab(29.90, 41.11, -55.81)
CIE-LCHlch(29.90, 69.32, 306.38°)
OKLaboklab(41.36% 0.0544 -0.1602)
OKLCHoklch(41.36% 0.169 288.8)
XYZxyz(10.3737, 6.1944, 33.4432)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D309F #829F30
analogous
#304A9F #4D309F #84309F
triadic
#4D309F #9F4D30 #309F4D
tetradic
#4D309F #9F304A #829F30 #309F84
square
#4D309F #9F304A #829F30 #309F84
split-complementary
#4D309F #9F8430 #4A9F30
monochromatic
#1F1441 #362270 #4D309F #6745C7 #8E74D5

Accessibility & contrast

On white

9.38
#4D309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4D309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D309F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D309F#FFFFFF#000000##FFFFFF
##4D309F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#2F4C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d309f;
/* rgb */ color: rgb(77, 48, 159);
/* oklch */ color: oklch(41.4% 0.169 288.8);
Tailwind
colors: {
  custom: {
    50: '#876bbc',
    500: '#4d309f',
    950: '#000000',
  },
}
SCSS
$custom: #4d309f;
$custom-light: #876bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d309f",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 255.676,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4136,
    "c": 0.16916,
    "h": 288.8
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#4D309F
secondary
#A8BD6E
accent
#DD4BB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D309F

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

Preview Lab → · Contrast checker → · Palette generator →

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