#4D1280#4D1280

#4D1280 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.166 H 302.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4D1280
RGBrgb(77, 18, 128)
HSLhsl(272, 75%, 29%)
HSVhsv(272, 86%, 50%)
CMYKcmyk(39.8%, 85.9%, 0%, 49.8%)
CIE-LABlab(22.19, 46.67, -49.21)
CIE-LCHlch(22.19, 67.82, 313.48°)
OKLaboklab(35.08% 0.0886 -0.1406)
OKLCHoklch(35.08% 0.166 302.2)
XYZxyz(7.1722, 3.5689, 20.7289)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1280 #458012
analogous
#161280 #4D1280 #80127C
triadic
#4D1280 #804D12 #12804D
tetradic
#4D1280 #801612 #458012 #127C80
square
#4D1280 #801612 #458012 #127C80
split-complementary
#4D1280 #7C8012 #128016
monochromatic
#10041B #2D0A4A #4D1280 #6D1AB6 #8D2BE1

Accessibility & contrast

On white

12.25
#4D1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1280
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1280#FFFFFF#000000##FFFFFF
##4D12801.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1280;
/* rgb */ color: rgb(77, 18, 128);
/* oklch */ color: oklch(35.1% 0.166 302.2);
Tailwind
colors: {
  custom: {
    50: '#8559a6',
    500: '#4d1280',
    950: '#000000',
  },
}
SCSS
$custom: #4d1280;
$custom-light: #8559a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1280",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 272.182,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35078,
    "c": 0.16617,
    "h": 302.2
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#4D1280
secondary
#72B638
accent
#F2368D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1280

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

Preview Lab → · Contrast checker → · Palette generator →

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