#4D2180#4D2180

#4D2180 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.150 H 300.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4D2180
RGBrgb(77, 33, 128)
HSLhsl(268, 59%, 32%)
HSVhsv(268, 74%, 50%)
CMYKcmyk(39.8%, 74.2%, 0%, 49.8%)
CIE-LABlab(24.40, 40.33, -45.60)
CIE-LCHlch(24.40, 60.88, 311.49°)
OKLaboklab(36.62% 0.0754 -0.1301)
OKLCHoklch(36.62% 0.15 300.1)
XYZxyz(7.4997, 4.2239, 20.8381)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2180 #548021
analogous
#212580 #4D2180 #7D2180
triadic
#4D2180 #804D21 #21804D
tetradic
#4D2180 #802125 #548021 #21807D
square
#4D2180 #802125 #548021 #21807D
split-complementary
#4D2180 #807D21 #258021
monochromatic
#12081F #30144F #4D2180 #6A2EB1 #894BD1

Accessibility & contrast

On white

11.38
#4D2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2180
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2180#FFFFFF#000000##FFFFFF
##4D21801.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#41384E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d2180;
/* rgb */ color: rgb(77, 33, 128);
/* oklch */ color: oklch(36.6% 0.150 300.1);
Tailwind
colors: {
  custom: {
    50: '#8460a6',
    500: '#4d2180',
    950: '#000000',
  },
}
SCSS
$custom: #4d2180;
$custom-light: #8460a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2180",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 267.789,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36623,
    "c": 0.15042,
    "h": 300.1
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#4D2180
secondary
#82B34A
accent
#E2469A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D2180

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

Preview Lab → · Contrast checker → · Palette generator →

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