#4D2183#4D2183

#4D2183 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.154 H 299.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4D2183
RGBrgb(77, 33, 131)
HSLhsl(267, 60%, 32%)
HSVhsv(267, 75%, 51%)
CMYKcmyk(41.2%, 74.8%, 0%, 48.6%)
CIE-LABlab(24.65, 41.12, -47.08)
CIE-LCHlch(24.65, 62.51, 311.14°)
OKLaboklab(36.88% 0.0748 -0.1345)
OKLCHoklch(36.88% 0.154 299.1)
XYZxyz(7.7001, 4.3041, 21.8934)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2183 #578321
analogous
#212683 #4D2183 #7E2183
triadic
#4D2183 #834D21 #21834D
tetradic
#4D2183 #832126 #578321 #21837E
square
#4D2183 #832126 #578321 #21837E
split-complementary
#4D2183 #837E21 #268321
monochromatic
#140821 #301552 #4D2183 #6A2DB4 #884CD2

Accessibility & contrast

On white

11.29
#4D2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2183
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2183#FFFFFF#000000##FFFFFF
##4D21831.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#403A50
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2183;
/* rgb */ color: rgb(77, 33, 131);
/* oklch */ color: oklch(36.9% 0.154 299.1);
Tailwind
colors: {
  custom: {
    50: '#8461a8',
    500: '#4d2183',
    950: '#000000',
  },
}
SCSS
$custom: #4d2183;
$custom-light: #8461a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2183",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 266.939,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36882,
    "c": 0.15388,
    "h": 299.1
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#4D2183
secondary
#85B54B
accent
#E3459C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2183

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

Preview Lab → · Contrast checker → · Palette generator →

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