#4D1281#4D1281

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

Color values

HEX#4D1281
RGBrgb(77, 18, 129)
HSLhsl(272, 76%, 29%)
HSVhsv(272, 86%, 51%)
CMYKcmyk(40.3%, 86%, 0%, 49.4%)
CIE-LABlab(22.29, 46.91, -49.69)
CIE-LCHlch(22.29, 68.33, 313.36°)
OKLaboklab(35.17% 0.0882 -0.142)
OKLCHoklch(35.17% 0.167 301.8)
XYZxyz(7.2384, 3.5953, 21.0772)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1281 #468112
analogous
#161281 #4D1281 #81127E
triadic
#4D1281 #814D12 #12814D
tetradic
#4D1281 #811612 #468112 #127E81
square
#4D1281 #811612 #468112 #127E81
split-complementary
#4D1281 #7E8112 #128116
monochromatic
#10041B #2D0B4B #4D1281 #6D19B7 #8C2CE2

Accessibility & contrast

On white

12.22
#4D1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1281
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1281#FFFFFF#000000##FFFFFF
##4D12811.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#41324B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1281;
/* rgb */ color: rgb(77, 18, 129);
/* oklch */ color: oklch(35.2% 0.167 301.8);
Tailwind
colors: {
  custom: {
    50: '#8559a7',
    500: '#4d1281',
    950: '#000000',
  },
}
SCSS
$custom: #4d1281;
$custom-light: #8559a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1281",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 271.892,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35172,
    "c": 0.16717,
    "h": 301.8
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#4D1281
secondary
#73B738
accent
#F2368E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1281

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

Preview Lab → · Contrast checker → · Palette generator →

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