#4D1E9B#4D1E9B

#4D1E9B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.184 H 292.6°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4D1E9B
RGBrgb(77, 30, 155)
HSLhsl(263, 68%, 36%)
HSVhsv(263, 81%, 61%)
CMYKcmyk(50.3%, 80.6%, 0%, 39.2%)
CIE-LABlab(26.37, 48.93, -59.15)
CIE-LCHlch(26.37, 76.76, 309.59°)
OKLaboklab(38.76% 0.0707 -0.1699)
OKLCHoklch(38.76% 0.184 292.6)
XYZxyz(9.4396, 4.8725, 31.4471)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E9B #6C9B1E
analogous
#1E2E9B #4D1E9B #8C1E9B
triadic
#4D1E9B #9B4D1E #1E9B4D
tetradic
#4D1E9B #9B1E2E #6C9B1E #1E9B8C
square
#4D1E9B #9B1E2E #6C9B1E #1E9B8C
split-complementary
#4D1E9B #9B8C1E #2E9B1E
monochromatic
#1A0A34 #341468 #4D1E9B #6628CE #8955DE

Accessibility & contrast

On white

10.64
#4D1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E9B
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E9B#FFFFFF#000000##FFFFFF
##4D1E9B1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#33425D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d1e9b;
/* rgb */ color: rgb(77, 30, 155);
/* oklch */ color: oklch(38.8% 0.184 292.6);
Tailwind
colors: {
  custom: {
    50: '#8860ba',
    500: '#4d1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e9b;
$custom-light: #8860ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e9b",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 262.56,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.18399,
    "h": 292.6
  },
  "luminance": 0.04873
}

Semantic roles & 50–950 ramp

primary
#4D1E9B
secondary
#98C253
accent
#EA3DA9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4D1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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