#4D1A83#4D1A83

#4D1A83 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.162 H 300.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4D1A83
RGBrgb(77, 26, 131)
HSLhsl(269, 67%, 31%)
HSVhsv(269, 80%, 51%)
CMYKcmyk(41.2%, 80.2%, 0%, 48.6%)
CIE-LABlab(23.52, 44.35, -48.92)
CIE-LCHlch(23.52, 66.03, 312.19°)
OKLaboklab(36.09% 0.0813 -0.1398)
OKLCHoklch(36.09% 0.162 300.2)
XYZxyz(7.5257, 3.9552, 21.8353)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A83 #50831A
analogous
#1A1B83 #4D1A83 #811A83
triadic
#4D1A83 #834D1A #1A834D
tetradic
#4D1A83 #831A1B #50831A #1A8381
square
#4D1A83 #831A1B #50831A #1A8381
split-complementary
#4D1A83 #83811A #1B831A
monochromatic
#11061D #2F1050 #4D1A83 #6B24B6 #893FD9

Accessibility & contrast

On white

11.73
#4D1A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D1A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A83
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A83#FFFFFF#000000##FFFFFF
##4D1A831.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003781
Tritanopia (blue-blind)
#40364E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1a83;
/* rgb */ color: rgb(77, 26, 131);
/* oklch */ color: oklch(36.1% 0.162 300.2);
Tailwind
colors: {
  custom: {
    50: '#855da8',
    500: '#4d1a83',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a83;
$custom-light: #855da8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a83",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 269.143,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36088,
    "c": 0.16178,
    "h": 300.2
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#4D1A83
secondary
#7EB742
accent
#EA3E96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1A83

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

Preview Lab → · Contrast checker → · Palette generator →

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