#4D319E#4D319E

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

Color values

HEX#4D319E
RGBrgb(77, 49, 158)
HSLhsl(255, 53%, 41%)
HSVhsv(255, 69%, 62%)
CMYKcmyk(51.3%, 69%, 0%, 38%)
CIE-LABlab(30.02, 40.25, -55.01)
CIE-LCHlch(30.02, 68.16, 306.20°)
OKLaboklab(41.42% 0.0536 -0.1578)
OKLCHoklch(41.42% 0.167 288.8)
XYZxyz(10.3286, 6.2426, 33.0018)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D319E #829E31
analogous
#314B9E #4D319E #83319E
triadic
#4D319E #9E4D31 #319E4D
tetradic
#4D319E #9E314B #829E31 #319E83
square
#4D319E #9E314B #829E31 #319E83
split-complementary
#4D319E #9E8331 #4B9E31
monochromatic
#1F1441 #36236F #4D319E #6746C6 #8E75D4

Accessibility & contrast

On white

9.34
#4D319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D319E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D319E#FFFFFF#000000##FFFFFF
##4D319E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#304C63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d319e;
/* rgb */ color: rgb(77, 49, 158);
/* oklch */ color: oklch(41.4% 0.167 288.8);
Tailwind
colors: {
  custom: {
    50: '#876bbc',
    500: '#4d319e',
    950: '#000000',
  },
}
SCSS
$custom: #4d319e;
$custom-light: #876bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d319e",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 255.413,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41418,
    "c": 0.16668,
    "h": 288.8
  },
  "luminance": 0.06243
}

Semantic roles & 50–950 ramp

primary
#4D319E
secondary
#A8BC6E
accent
#DC4CB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D319E

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

Preview Lab → · Contrast checker → · Palette generator →

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