#4D158F#4D158F

#4D158F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.179 H 296.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4D158F
RGBrgb(77, 21, 143)
HSLhsl(268, 74%, 32%)
HSVhsv(268, 85%, 56%)
CMYKcmyk(46.2%, 85.3%, 0%, 43.9%)
CIE-LABlab(23.99, 49.33, -55.66)
CIE-LCHlch(23.99, 74.37, 311.55°)
OKLaboklab(36.76% 0.0811 -0.1596)
OKLCHoklch(36.76% 0.179 296.9)
XYZxyz(8.2853, 4.0971, 26.3356)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D158F #578F15
analogous
#151A8F #4D158F #8A158F
triadic
#4D158F #8F4D15 #158F4D
tetradic
#4D158F #8F151A #578F15 #158F8A
square
#4D158F #8F151A #578F15 #158F8A
split-complementary
#4D158F #8F8A15 #1A8F15
monochromatic
#140524 #300D5A #4D158F #6A1DC4 #883CE2

Accessibility & contrast

On white

11.54
#4D158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D158F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D158F#FFFFFF#000000##FFFFFF
##4D158F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#3B3A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d158f;
/* rgb */ color: rgb(77, 21, 143);
/* oklch */ color: oklch(36.8% 0.179 296.9);
Tailwind
colors: {
  custom: {
    50: '#865cb1',
    500: '#4d158f',
    950: '#000000',
  },
}
SCSS
$custom: #4d158f;
$custom-light: #865cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d158f",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 267.541,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36759,
    "c": 0.17899,
    "h": 296.9
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#4D158F
secondary
#85C23E
accent
#F1379C
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D158F

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

Preview Lab → · Contrast checker → · Palette generator →

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