#4D318D#4D318D

#4D318D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.145 H 292.6°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#4D318D
RGBrgb(77, 49, 141)
HSLhsl(258, 48%, 37%)
HSVhsv(258, 65%, 55%)
CMYKcmyk(45.4%, 65.2%, 0%, 44.7%)
CIE-LABlab(28.64, 35.21, -46.84)
CIE-LCHlch(28.64, 58.60, 306.93°)
OKLaboklab(39.99% 0.0558 -0.1338)
OKLCHoklch(39.99% 0.145 292.6)
XYZxyz(8.9653, 5.6972, 25.8214)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D318D #718D31
analogous
#31438D #4D318D #7B318D
triadic
#4D318D #8D4D31 #318D4D
tetradic
#4D318D #8D3143 #718D31 #318D7B
square
#4D318D #8D3143 #718D31 #318D7B
split-complementary
#4D318D #8D7B31 #438D31
monochromatic
#1B1132 #342160 #4D318D #6641BA #896CCC

Accessibility & contrast

On white

9.82
#4D318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D318D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D318D#FFFFFF#000000##FFFFFF
##4D318D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#3B465A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d318d;
/* rgb */ color: rgb(77, 49, 141);
/* oklch */ color: oklch(40.0% 0.145 292.6);
Tailwind
colors: {
  custom: {
    50: '#846baf',
    500: '#4d318d',
    950: '#000000',
  },
}
SCSS
$custom: #4d318d;
$custom-light: #846baf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d318d",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 258.261,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39991,
    "c": 0.14499,
    "h": 292.6
  },
  "luminance": 0.05697
}

Semantic roles & 50–950 ramp

primary
#4D318D
secondary
#9CB466
accent
#D850AF
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D318D

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

Preview Lab → · Contrast checker → · Palette generator →

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