#4D177B#4D177B

#4D177B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.156 H 303.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4D177B
RGBrgb(77, 23, 123)
HSLhsl(272, 68%, 29%)
HSVhsv(272, 81%, 48%)
CMYKcmyk(37.4%, 81.3%, 0%, 51.8%)
CIE-LABlab(22.38, 43.59, -45.73)
CIE-LCHlch(22.38, 63.17, 313.62°)
OKLaboklab(35.07% 0.0862 -0.1304)
OKLCHoklch(35.07% 0.156 303.5)
XYZxyz(6.9413, 3.6206, 19.0682)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D177B #457B17
analogous
#1B177B #4D177B #7B1777
triadic
#4D177B #7B4D17 #177B4D
tetradic
#4D177B #7B1B17 #457B17 #17777B
square
#4D177B #7B1B17 #457B17 #17777B
split-complementary
#4D177B #777B17 #177B1B
monochromatic
#10051A #2D0D47 #4D177B #6D21AF #8D33D9

Accessibility & contrast

On white

12.18
#4D177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D177B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D177B#FFFFFF#000000##FFFFFF
##4D177B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#443249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d177b;
/* rgb */ color: rgb(77, 23, 123);
/* oklch */ color: oklch(35.1% 0.156 303.5);
Tailwind
colors: {
  custom: {
    50: '#845ba2',
    500: '#4d177b',
    950: '#000000',
  },
}
SCSS
$custom: #4d177b;
$custom-light: #845ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d177b",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 272.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35065,
    "c": 0.15637,
    "h": 303.5
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#4D177B
secondary
#72B03E
accent
#EB3C8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D177B

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

Preview Lab → · Contrast checker → · Palette generator →

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