#4D2182#4D2182

#4D2182 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.153 H 299.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4D2182
RGBrgb(77, 33, 130)
HSLhsl(267, 60%, 32%)
HSVhsv(267, 75%, 51%)
CMYKcmyk(40.8%, 74.6%, 0%, 49%)
CIE-LABlab(24.57, 40.86, -46.59)
CIE-LCHlch(24.57, 61.97, 311.25°)
OKLaboklab(36.8% 0.075 -0.133)
OKLCHoklch(36.8% 0.153 299.4)
XYZxyz(7.6327, 4.2771, 21.5382)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2182 #568221
analogous
#212682 #4D2182 #7D2182
triadic
#4D2182 #824D21 #21824D
tetradic
#4D2182 #822126 #568221 #21827D
square
#4D2182 #822126 #568221 #21827D
split-complementary
#4D2182 #827D21 #268221
monochromatic
#130820 #301551 #4D2182 #6A2DB3 #884CD2

Accessibility & contrast

On white

11.32
#4D2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2182
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2182#FFFFFF#000000##FFFFFF
##4D21821.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#41394F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d2182;
/* rgb */ color: rgb(77, 33, 130);
/* oklch */ color: oklch(36.8% 0.153 299.4);
Tailwind
colors: {
  custom: {
    50: '#8461a7',
    500: '#4d2182',
    950: '#000000',
  },
}
SCSS
$custom: #4d2182;
$custom-light: #8461a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2182",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 267.216,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36796,
    "c": 0.15272,
    "h": 299.4
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#4D2182
secondary
#84B44A
accent
#E3459B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D2182

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

Preview Lab → · Contrast checker → · Palette generator →

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