#4D2187#4D2187

#4D2187 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.158 H 297.8°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4D2187
RGBrgb(77, 33, 135)
HSLhsl(266, 61%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(43%, 75.6%, 0%, 47.1%)
CIE-LABlab(25.00, 42.20, -49.03)
CIE-LCHlch(25.00, 64.68, 310.72°)
OKLaboklab(37.23% 0.0739 -0.1402)
OKLCHoklch(37.23% 0.158 297.8)
XYZxyz(7.9765, 4.4146, 23.3488)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2187 #5B8721
analogous
#212887 #4D2187 #802187
triadic
#4D2187 #874D21 #21874D
tetradic
#4D2187 #872128 #5B8721 #218780
square
#4D2187 #872128 #5B8721 #218780
split-complementary
#4D2187 #878021 #288721
monochromatic
#150925 #311556 #4D2187 #692DB8 #884FD4

Accessibility & contrast

On white

11.15
#4D2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2187
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2187#FFFFFF#000000##FFFFFF
##4D21871.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#3E3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2187;
/* rgb */ color: rgb(77, 33, 135);
/* oklch */ color: oklch(37.2% 0.158 297.8);
Tailwind
colors: {
  custom: {
    50: '#8561ab',
    500: '#4d2187',
    950: '#000000',
  },
}
SCSS
$custom: #4d2187;
$custom-light: #8561ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2187",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 265.882,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37233,
    "c": 0.15847,
    "h": 297.8
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#4D2187
secondary
#89B74D
accent
#E4449F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D2187

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

Preview Lab → · Contrast checker → · Palette generator →

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