#4D177E#4D177E

#4D177E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.160 H 302.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#4D177E
RGBrgb(77, 23, 126)
HSLhsl(271, 69%, 29%)
HSVhsv(271, 82%, 49%)
CMYKcmyk(38.9%, 81.7%, 0%, 50.6%)
CIE-LABlab(22.64, 44.33, -47.20)
CIE-LCHlch(22.64, 64.75, 313.20°)
OKLaboklab(35.34% 0.0854 -0.1348)
OKLCHoklch(35.34% 0.16 302.4)
XYZxyz(7.1320, 3.6969, 20.0725)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D177E #487E17
analogous
#19177E #4D177E #7E177C
triadic
#4D177E #7E4D17 #177E4D
tetradic
#4D177E #7E1917 #487E17 #177C7E
square
#4D177E #7E1917 #487E17 #177C7E
split-complementary
#4D177E #7C7E17 #177E19
monochromatic
#10051A #2D0E4A #4D177E #6D20B2 #8C35DA

Accessibility & contrast

On white

12.07
#4D177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D177E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D177E#FFFFFF#000000##FFFFFF
##4D177E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#42334B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d177e;
/* rgb */ color: rgb(77, 23, 126);
/* oklch */ color: oklch(35.3% 0.160 302.4);
Tailwind
colors: {
  custom: {
    50: '#845ba4',
    500: '#4d177e',
    950: '#000000',
  },
}
SCSS
$custom: #4d177e;
$custom-light: #845ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d177e",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 271.456,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35335,
    "c": 0.15952,
    "h": 302.4
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#4D177E
secondary
#76B33E
accent
#EC3C90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D177E

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

Preview Lab → · Contrast checker → · Palette generator →

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