#4D157F#4D157F

#4D157F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.162 H 302.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4D157F
RGBrgb(77, 21, 127)
HSLhsl(272, 72%, 29%)
HSVhsv(272, 83%, 50%)
CMYKcmyk(39.4%, 83.5%, 0%, 50.2%)
CIE-LABlab(22.47, 45.35, -48.12)
CIE-LCHlch(22.47, 66.13, 313.30°)
OKLaboklab(35.24% 0.0867 -0.1374)
OKLCHoklch(35.24% 0.162 302.2)
XYZxyz(7.1586, 3.6464, 20.4012)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D157F #477F15
analogous
#18157F #4D157F #7F157C
triadic
#4D157F #7F4D15 #157F4D
tetradic
#4D157F #7F1815 #477F15 #157C7F
square
#4D157F #7F1815 #477F15 #157C7F
split-complementary
#4D157F #7C7F15 #157F18
monochromatic
#10041A #2D0C4A #4D157F #6D1EB4 #8C31DD

Accessibility & contrast

On white

12.14
#4D157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D157F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D157F#FFFFFF#000000##FFFFFF
##4D157F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#42324B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d157f;
/* rgb */ color: rgb(77, 21, 127);
/* oklch */ color: oklch(35.2% 0.162 302.2);
Tailwind
colors: {
  custom: {
    50: '#845ba5',
    500: '#4d157f',
    950: '#000000',
  },
}
SCSS
$custom: #4d157f;
$custom-light: #845ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d157f",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 271.698,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.16249,
    "h": 302.2
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#4D157F
secondary
#74B43C
accent
#EE398F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D157F

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

Preview Lab → · Contrast checker → · Palette generator →

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