#4D176C#4D176C

#4D176C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.141 H 309.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4D176C
RGBrgb(77, 23, 108)
HSLhsl(278, 65%, 26%)
HSVhsv(278, 79%, 42%)
CMYKcmyk(28.7%, 78.7%, 0%, 57.6%)
CIE-LABlab(21.11, 39.95, -38.15)
CIE-LCHlch(21.11, 55.24, 316.32°)
OKLaboklab(33.78% 0.0899 -0.1081)
OKLCHoklch(33.78% 0.141 309.7)
XYZxyz(6.0732, 3.2734, 14.4963)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D176C #366C17
analogous
#23176C #4D176C #6C1760
triadic
#4D176C #6C4D17 #176C4D
tetradic
#4D176C #6C2317 #366C17 #17606C
square
#4D176C #6C2317 #366C17 #17606C
split-complementary
#4D176C #606C17 #176C23
monochromatic
#120519 #290C3A #4D176C #71229E #952CD1

Accessibility & contrast

On white

12.69
#4D176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4D176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D176C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D176C#FFFFFF#000000##FFFFFF
##4D176C1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#01336A
Tritanopia (blue-blind)
#482B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d176c;
/* rgb */ color: rgb(77, 23, 108);
/* oklch */ color: oklch(33.8% 0.141 309.7);
Tailwind
colors: {
  custom: {
    50: '#835a97',
    500: '#4d176c',
    950: '#000000',
  },
}
SCSS
$custom: #4d176c;
$custom-light: #835a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4d176c",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 278.118,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33779,
    "c": 0.14063,
    "h": 309.7
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#4D176C
secondary
#62A23D
accent
#E8407D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D176C

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

Preview Lab → · Contrast checker → · Palette generator →

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