#4D2891#4D2891

#4D2891 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.162 H 293.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4D2891
RGBrgb(77, 40, 145)
HSLhsl(261, 57%, 36%)
HSVhsv(261, 72%, 57%)
CMYKcmyk(46.9%, 72.4%, 0%, 43.1%)
CIE-LABlab(27.13, 41.40, -51.76)
CIE-LCHlch(27.13, 66.28, 308.65°)
OKLaboklab(39.01% 0.0648 -0.1483)
OKLCHoklch(39.01% 0.162 293.6)
XYZxyz(8.9288, 5.1394, 27.3041)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2891 #6C9128
analogous
#283891 #4D2891 #822891
triadic
#4D2891 #914D28 #28914D
tetradic
#4D2891 #912838 #6C9128 #289182
square
#4D2891 #912838 #6C9128 #289182
split-complementary
#4D2891 #918228 #389128
monochromatic
#1A0E31 #341B61 #4D2891 #6635C1 #8960D3

Accessibility & contrast

On white

10.36
#4D2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4D2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2891
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2891#FFFFFF#000000##FFFFFF
##4D28911.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#39435A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2891;
/* rgb */ color: rgb(77, 40, 145);
/* oklch */ color: oklch(39.0% 0.162 293.6);
Tailwind
colors: {
  custom: {
    50: '#8565b2',
    500: '#4d2891',
    950: '#000000',
  },
}
SCSS
$custom: #4d2891;
$custom-light: #8565b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2891",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 261.143,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39012,
    "c": 0.16182,
    "h": 293.6
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#4D2891
secondary
#98B95C
accent
#E048AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D2891

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

Preview Lab → · Contrast checker → · Palette generator →

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