#4D155E#4D155E

#4D155E is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.129 H 317.1°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#4D155E
RGBrgb(77, 21, 94)
HSLhsl(286, 63%, 23%)
HSVhsv(286, 78%, 37%)
CMYKcmyk(18.1%, 77.7%, 0%, 63.1%)
CIE-LABlab(19.73, 37.59, -31.17)
CIE-LCHlch(19.73, 48.84, 320.33°)
OKLaboklab(32.46% 0.0942 -0.0877)
OKLCHoklch(32.46% 0.129 317.1)
XYZxyz(5.3488, 2.9225, 10.8699)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D155E #265E15
analogous
#28155E #4D155E #5E154B
triadic
#4D155E #5E4D15 #155E4D
tetradic
#4D155E #5E2815 #265E15 #154B5E
square
#4D155E #5E2815 #265E15 #154B5E
split-complementary
#4D155E #4B5E15 #155E28
monochromatic
#140619 #240A2C #4D155E #762090 #9F2BC2

Accessibility & contrast

On white

13.25
#4D155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4D155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D155E
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D155E#FFFFFF#000000##FFFFFF
##4D155E1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#16315C
Tritanopia (blue-blind)
#4C2438
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d155e;
/* rgb */ color: rgb(77, 21, 94);
/* oklch */ color: oklch(32.5% 0.129 317.1);
Tailwind
colors: {
  custom: {
    50: '#82598c',
    500: '#4d155e',
    950: '#000000',
  },
}
SCSS
$custom: #4d155e;
$custom-light: #82598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d155e",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 286.027,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32462,
    "c": 0.12871,
    "h": 317.1
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#4D155E
secondary
#4F9539
accent
#E74168
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D155E

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

Preview Lab → · Contrast checker → · Palette generator →

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