#4D148D#4D148D

#4D148D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.178 H 297.7°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4D148D
RGBrgb(77, 20, 141)
HSLhsl(268, 75%, 32%)
HSVhsv(268, 86%, 55%)
CMYKcmyk(45.4%, 85.8%, 0%, 44.7%)
CIE-LABlab(23.67, 49.18, -54.94)
CIE-LCHlch(23.67, 73.73, 311.83°)
OKLaboklab(36.48% 0.0825 -0.1574)
OKLCHoklch(36.48% 0.178 297.7)
XYZxyz(8.1172, 4.0010, 25.5387)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D148D #548D14
analogous
#14188D #4D148D #8A148D
triadic
#4D148D #8D4D14 #148D4D
tetradic
#4D148D #8D1418 #548D14 #148D8A
square
#4D148D #8D1418 #548D14 #148D8A
split-complementary
#4D148D #8D8A14 #188D14
monochromatic
#120522 #300C57 #4D148D #6A1CC3 #8939E3

Accessibility & contrast

On white

11.67
#4D148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D148D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D148D#FFFFFF#000000##FFFFFF
##4D148D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#3C3853
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d148d;
/* rgb */ color: rgb(77, 20, 141);
/* oklch */ color: oklch(36.5% 0.178 297.7);
Tailwind
colors: {
  custom: {
    50: '#865baf',
    500: '#4d148d',
    950: '#000000',
  },
}
SCSS
$custom: #4d148d;
$custom-light: #865baf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d148d",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 268.264,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36482,
    "c": 0.17773,
    "h": 297.7
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#4D148D
secondary
#82C13C
accent
#F23699
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D148D

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

Preview Lab → · Contrast checker → · Palette generator →

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