#4D1EA1#4D1EA1

#4D1EA1 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.191 H 291.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4D1EA1
RGBrgb(77, 30, 161)
HSLhsl(262, 69%, 37%)
HSVhsv(262, 81%, 63%)
CMYKcmyk(52.2%, 81.4%, 0%, 36.9%)
CIE-LABlab(26.96, 50.53, -61.84)
CIE-LCHlch(26.96, 79.86, 309.25°)
OKLaboklab(39.35% 0.0687 -0.1777)
OKLCHoklch(39.35% 0.191 291.1)
XYZxyz(9.9560, 5.0791, 34.1671)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1EA1 #72A11E
analogous
#1E30A1 #4D1EA1 #8F1EA1
triadic
#4D1EA1 #A14D1E #1EA14D
tetradic
#4D1EA1 #A11E30 #72A11E #1EA18F
square
#4D1EA1 #A11E30 #72A11E #1EA18F
split-complementary
#4D1EA1 #A18F1E #30A11E
monochromatic
#1C0B3A #34146D #4D1EA1 #6628D5 #8A59E0

Accessibility & contrast

On white

10.42
#4D1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1EA1
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1EA1#FFFFFF#000000##FFFFFF
##4D1EA11.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#2F4560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d1ea1;
/* rgb */ color: rgb(77, 30, 161);
/* oklch */ color: oklch(39.3% 0.191 291.1);
Tailwind
colors: {
  custom: {
    50: '#8861be',
    500: '#4d1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #4d1ea1;
$custom-light: #8861be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1ea1",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 261.527,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.19055,
    "h": 291.1
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#4D1EA1
secondary
#9DC457
accent
#EB3CAD
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0D0512
muted
#7D7981

Preview Lab

Preview with #4D1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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