#4D1EA6#4D1EA6

#4D1EA6 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.196 H 290.0°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4D1EA6
RGBrgb(77, 30, 166)
HSLhsl(261, 69%, 38%)
HSVhsv(261, 82%, 65%)
CMYKcmyk(53.6%, 81.9%, 0%, 34.9%)
CIE-LABlab(27.46, 51.86, -64.05)
CIE-LCHlch(27.46, 82.41, 309.00°)
OKLaboklab(39.84% 0.067 -0.1842)
OKLCHoklch(39.84% 0.196 290)
XYZxyz(10.4058, 5.2590, 36.5358)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1EA6 #77A61E
analogous
#1E33A6 #4D1EA6 #911EA6
triadic
#4D1EA6 #A64D1E #1EA64D
tetradic
#4D1EA6 #A61E33 #77A61E #1EA691
square
#4D1EA6 #A61E33 #77A61E #1EA691
split-complementary
#4D1EA6 #A6911E #33A61E
monochromatic
#1D0B3E #351572 #4D1EA6 #6629D8 #8B5DE2

Accessibility & contrast

On white

10.23
#4D1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1EA6
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1EA6#FFFFFF#000000##FFFFFF
##4D1EA61.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#2B4763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d1ea6;
/* rgb */ color: rgb(77, 30, 166);
/* oklch */ color: oklch(39.8% 0.196 290.0);
Tailwind
colors: {
  custom: {
    50: '#8961c2',
    500: '#4d1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4d1ea6;
$custom-light: #8961c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1ea6",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 260.735,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39844,
    "c": 0.19599,
    "h": 290
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#4D1EA6
secondary
#A1C65A
accent
#EC3CAF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4D1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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