#4D1E9F#4D1E9F

#4D1E9F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.188 H 291.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4D1E9F
RGBrgb(77, 30, 159)
HSLhsl(262, 68%, 37%)
HSVhsv(262, 81%, 62%)
CMYKcmyk(51.6%, 81.1%, 0%, 37.6%)
CIE-LABlab(26.76, 49.99, -60.95)
CIE-LCHlch(26.76, 78.83, 309.36°)
OKLaboklab(39.15% 0.0694 -0.1751)
OKLCHoklch(39.15% 0.188 291.6)
XYZxyz(9.7811, 5.0091, 33.2457)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E9F #709F1E
analogous
#1E309F #4D1E9F #8D1E9F
triadic
#4D1E9F #9F4D1E #1E9F4D
tetradic
#4D1E9F #9F1E30 #709F1E #1E9F8D
square
#4D1E9F #9F1E30 #709F1E #1E9F8D
split-complementary
#4D1E9F #9F8D1E #309F1E
monochromatic
#1B0B38 #34146C #4D1E9F #6628D2 #8958DF

Accessibility & contrast

On white

10.49
#4D1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E9F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E9F#FFFFFF#000000##FFFFFF
##4D1E9F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#31445F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d1e9f;
/* rgb */ color: rgb(77, 30, 159);
/* oklch */ color: oklch(39.1% 0.188 291.6);
Tailwind
colors: {
  custom: {
    50: '#8861bd',
    500: '#4d1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e9f;
$custom-light: #8861bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e9f",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 261.86,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3915,
    "c": 0.18836,
    "h": 291.6
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#4D1E9F
secondary
#9BC356
accent
#EB3DAC
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4D1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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