#4D1180#4D1180

#4D1180 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.167 H 302.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4D1180
RGBrgb(77, 17, 128)
HSLhsl(272, 77%, 28%)
HSVhsv(272, 87%, 50%)
CMYKcmyk(39.8%, 86.7%, 0%, 49.8%)
CIE-LABlab(22.08, 47.00, -49.39)
CIE-LCHlch(22.08, 68.18, 313.58°)
OKLaboklab(35% 0.0892 -0.1411)
OKLCHoklch(35% 0.167 302.3)
XYZxyz(7.1564, 3.5372, 20.7236)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1180 #448011
analogous
#151180 #4D1180 #80117B
triadic
#4D1180 #804D11 #11804D
tetradic
#4D1180 #801511 #448011 #117B80
square
#4D1180 #801511 #448011 #117B80
split-complementary
#4D1180 #7B8011 #118015
monochromatic
#10041B #2C0A4A #4D1180 #6D18B6 #8D29E3

Accessibility & contrast

On white

12.30
#4D1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1180
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1180#FFFFFF#000000##FFFFFF
##4D11801.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#42314B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1180;
/* rgb */ color: rgb(77, 17, 128);
/* oklch */ color: oklch(35.0% 0.167 302.3);
Tailwind
colors: {
  custom: {
    50: '#8559a6',
    500: '#4d1180',
    950: '#000000',
  },
}
SCSS
$custom: #4d1180;
$custom-light: #8559a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1180",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 272.432,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35,
    "c": 0.16699,
    "h": 302.3
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#4D1180
secondary
#71B637
accent
#F3358C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1180

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

Preview Lab → · Contrast checker → · Palette generator →

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