#4D1380#4D1380

#4D1380 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.165 H 302.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4D1380
RGBrgb(77, 19, 128)
HSLhsl(272, 74%, 29%)
HSVhsv(272, 85%, 50%)
CMYKcmyk(39.8%, 85.2%, 0%, 49.8%)
CIE-LABlab(22.31, 46.32, -49.01)
CIE-LCHlch(22.31, 67.44, 313.38°)
OKLaboklab(35.16% 0.0879 -0.14)
OKLCHoklch(35.16% 0.165 302.1)
XYZxyz(7.1888, 3.6020, 20.7344)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1380 #468013
analogous
#171380 #4D1380 #80137D
triadic
#4D1380 #804D13 #13804D
tetradic
#4D1380 #801713 #468013 #137D80
square
#4D1380 #801713 #468013 #137D80
split-complementary
#4D1380 #7D8013 #138017
monochromatic
#10041B #2D0B4B #4D1380 #6D1BB5 #8C2DE0

Accessibility & contrast

On white

12.21
#4D1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1380
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1380#FFFFFF#000000##FFFFFF
##4D13801.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#42324B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1380;
/* rgb */ color: rgb(77, 19, 128);
/* oklch */ color: oklch(35.2% 0.165 302.1);
Tailwind
colors: {
  custom: {
    50: '#855aa6',
    500: '#4d1380',
    950: '#000000',
  },
}
SCSS
$custom: #4d1380;
$custom-light: #855aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1380",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 271.927,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3516,
    "c": 0.16532,
    "h": 302.1
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#4D1380
secondary
#73B539
accent
#F1378E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1380

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

Preview Lab → · Contrast checker → · Palette generator →

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