#4D165E#4D165E

#4D165E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.127 H 317.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#4D165E
RGBrgb(77, 22, 94)
HSLhsl(286, 62%, 23%)
HSVhsv(286, 77%, 37%)
CMYKcmyk(18.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(19.88, 37.16, -30.93)
CIE-LCHlch(19.88, 48.35, 320.23°)
OKLaboklab(32.57% 0.0931 -0.087)
OKLCHoklch(32.57% 0.127 317)
XYZxyz(5.3676, 2.9600, 10.8761)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D165E #275E16
analogous
#29165E #4D165E #5E164B
triadic
#4D165E #5E4D16 #165E4D
tetradic
#4D165E #5E2916 #275E16 #164B5E
square
#4D165E #5E2916 #275E16 #164B5E
split-complementary
#4D165E #4B5E16 #165E29
monochromatic
#140619 #240A2C #4D165E #762290 #9E2DC1

Accessibility & contrast

On white

13.19
#4D165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4D165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D165E
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D165E#FFFFFF#000000##FFFFFF
##4D165E1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#17325C
Tritanopia (blue-blind)
#4C2538
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d165e;
/* rgb */ color: rgb(77, 22, 94);
/* oklch */ color: oklch(32.6% 0.127 317.0);
Tailwind
colors: {
  custom: {
    50: '#82598c',
    500: '#4d165e',
    950: '#000000',
  },
}
SCSS
$custom: #4d165e;
$custom-light: #82598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d165e",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 285.833,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32571,
    "c": 0.12742,
    "h": 317
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#4D165E
secondary
#50953B
accent
#E54369
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D165E

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

Preview Lab → · Contrast checker → · Palette generator →

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