#4D158D#4D158D

#4D158D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.6% C 0.177 H 297.6°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4D158D
RGBrgb(77, 21, 141)
HSLhsl(268, 74%, 32%)
HSVhsv(268, 85%, 55%)
CMYKcmyk(45.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(23.79, 48.83, -54.74)
CIE-LCHlch(23.79, 73.35, 311.73°)
OKLaboklab(36.56% 0.0818 -0.1569)
OKLCHoklch(36.56% 0.177 297.6)
XYZxyz(8.1352, 4.0370, 25.5447)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D158D #558D15
analogous
#15198D #4D158D #89158D
triadic
#4D158D #8D4D15 #158D4D
tetradic
#4D158D #8D1519 #558D15 #158D89
square
#4D158D #8D1519 #558D15 #158D89
split-complementary
#4D158D #8D8915 #198D15
monochromatic
#130522 #300D58 #4D158D #6A1DC2 #893BE2

Accessibility & contrast

On white

11.62
#4D158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D158D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D158D#FFFFFF#000000##FFFFFF
##4D158D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d158d;
/* rgb */ color: rgb(77, 21, 141);
/* oklch */ color: oklch(36.6% 0.177 297.6);
Tailwind
colors: {
  custom: {
    50: '#865baf',
    500: '#4d158d',
    950: '#000000',
  },
}
SCSS
$custom: #4d158d;
$custom-light: #865baf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d158d",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 268,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36564,
    "c": 0.17693,
    "h": 297.6
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#4D158D
secondary
#83C13D
accent
#F1379A
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D158D

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

Preview Lab → · Contrast checker → · Palette generator →

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