#4D2284#4D2284

#4D2284 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.154 H 298.6°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4D2284
RGBrgb(77, 34, 132)
HSLhsl(266, 59%, 33%)
HSVhsv(266, 74%, 52%)
CMYKcmyk(41.7%, 74.2%, 0%, 48.2%)
CIE-LABlab(24.91, 40.89, -47.28)
CIE-LCHlch(24.91, 62.51, 310.86°)
OKLaboklab(37.09% 0.0736 -0.1351)
OKLCHoklch(37.09% 0.154 298.6)
XYZxyz(7.7964, 4.3877, 22.2615)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2284 #598422
analogous
#222884 #4D2284 #7E2284
triadic
#4D2284 #844D22 #22844D
tetradic
#4D2284 #842228 #598422 #22847E
square
#4D2284 #842228 #598422 #22847E
split-complementary
#4D2284 #847E22 #288422
monochromatic
#140923 #311553 #4D2284 #692FB5 #884FD2

Accessibility & contrast

On white

11.18
#4D2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2284
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2284#FFFFFF#000000##FFFFFF
##4D22841.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#403B51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2284;
/* rgb */ color: rgb(77, 34, 132);
/* oklch */ color: oklch(37.1% 0.154 298.6);
Tailwind
colors: {
  custom: {
    50: '#8461a9',
    500: '#4d2284',
    950: '#000000',
  },
}
SCSS
$custom: #4d2284;
$custom-light: #8461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2284",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 266.327,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37094,
    "c": 0.15381,
    "h": 298.6
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#4D2284
secondary
#87B54D
accent
#E2469D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2284

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

Preview Lab → · Contrast checker → · Palette generator →

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