#4D1E97#4D1E97

#4D1E97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.180 H 293.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#4D1E97
RGBrgb(77, 30, 151)
HSLhsl(263, 67%, 35%)
HSVhsv(263, 80%, 59%)
CMYKcmyk(49%, 80.1%, 0%, 40.8%)
CIE-LABlab(25.98, 47.86, -57.33)
CIE-LCHlch(25.98, 74.68, 309.85°)
OKLaboklab(38.37% 0.072 -0.1645)
OKLCHoklch(38.37% 0.18 293.6)
XYZxyz(9.1092, 4.7404, 29.7072)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E97 #68971E
analogous
#1E2B97 #4D1E97 #891E97
triadic
#4D1E97 #974D1E #1E974D
tetradic
#4D1E97 #971E2B #68971E #1E9789
square
#4D1E97 #971E2B #68971E #1E9789
split-complementary
#4D1E97 #97891E #2B971E
monochromatic
#190A31 #331464 #4D1E97 #6728CA #8853DD

Accessibility & contrast

On white

10.78
#4D1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E97
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E97#FFFFFF#000000##FFFFFF
##4D1E971.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#36405A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d1e97;
/* rgb */ color: rgb(77, 30, 151);
/* oklch */ color: oklch(38.4% 0.180 293.6);
Tailwind
colors: {
  custom: {
    50: '#8760b7',
    500: '#4d1e97',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e97;
$custom-light: #8760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e97",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 263.306,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38373,
    "c": 0.1796,
    "h": 293.6
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#4D1E97
secondary
#95C051
accent
#EA3EA7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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