#4D177F#4D177F

#4D177F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.161 H 302.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4D177F
RGBrgb(77, 23, 127)
HSLhsl(271, 69%, 29%)
HSVhsv(271, 82%, 50%)
CMYKcmyk(39.4%, 81.9%, 0%, 50.2%)
CIE-LABlab(22.73, 44.58, -47.69)
CIE-LCHlch(22.73, 65.28, 313.07°)
OKLaboklab(35.43% 0.0851 -0.1362)
OKLCHoklch(35.43% 0.161 302)
XYZxyz(7.1968, 3.7228, 20.4140)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D177F #497F17
analogous
#19177F #4D177F #7F177D
triadic
#4D177F #7F4D17 #177F4D
tetradic
#4D177F #7F1917 #497F17 #177D7F
square
#4D177F #7F1917 #497F17 #177D7F
split-complementary
#4D177F #7D7F17 #177F19
monochromatic
#10051A #2E0E4B #4D177F #6C20B3 #8B36DB

Accessibility & contrast

On white

12.04
#4D177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D177F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D177F#FFFFFF#000000##FFFFFF
##4D177F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d177f;
/* rgb */ color: rgb(77, 23, 127);
/* oklch */ color: oklch(35.4% 0.161 302.0);
Tailwind
colors: {
  custom: {
    50: '#845ba5',
    500: '#4d177f',
    950: '#000000',
  },
}
SCSS
$custom: #4d177f;
$custom-light: #845ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d177f",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 271.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35426,
    "c": 0.16057,
    "h": 302
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#4D177F
secondary
#77B43E
accent
#EC3C91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D177F

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

Preview Lab → · Contrast checker → · Palette generator →

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