#4D115C#4D115C

#4D115C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.132 H 318.6°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#4D115C
RGBrgb(77, 17, 92)
HSLhsl(288, 69%, 21%)
HSVhsv(288, 82%, 36%)
CMYKcmyk(16.3%, 81.5%, 0%, 63.9%)
CIE-LABlab(19.02, 38.77, -30.99)
CIE-LCHlch(19.02, 49.63, 321.37°)
OKLaboklab(31.91% 0.0987 -0.0871)
OKLCHoklch(31.91% 0.132 318.6)
XYZxyz(5.1925, 2.7516, 10.3807)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D115C #205C11
analogous
#28115C #4D115C #5C1146
triadic
#4D115C #5C4D11 #115C4D
tetradic
#4D115C #5C2811 #205C11 #11465C
square
#4D115C #5C2811 #205C11 #11465C
split-complementary
#4D115C #465C11 #115C28
monochromatic
#16051A #220728 #4D115C #781B90 #A324C3

Accessibility & contrast

On white

13.55
#4D115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4D115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D115C
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D115C#FFFFFF#000000##FFFFFF
##4D115C1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#15305A
Tritanopia (blue-blind)
#4D2136
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d115c;
/* rgb */ color: rgb(77, 17, 92);
/* oklch */ color: oklch(31.9% 0.132 318.6);
Tailwind
colors: {
  custom: {
    50: '#82578b',
    500: '#4d115c',
    950: '#000000',
  },
}
SCSS
$custom: #4d115c;
$custom-light: #82578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d115c",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 288,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31911,
    "c": 0.13161,
    "h": 318.6
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#4D115C
secondary
#479534
accent
#EC3C5F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D115C

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

Preview Lab → · Contrast checker → · Palette generator →

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