#4D1E7B#4D1E7B

#4D1E7B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.148 H 302.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#4D1E7B
RGBrgb(77, 30, 123)
HSLhsl(270, 61%, 30%)
HSVhsv(270, 76%, 48%)
CMYKcmyk(37.4%, 75.6%, 0%, 51.8%)
CIE-LABlab(23.46, 40.48, -43.96)
CIE-LCHlch(23.46, 59.76, 312.64°)
OKLaboklab(35.83% 0.0796 -0.1253)
OKLCHoklch(35.83% 0.148 302.4)
XYZxyz(7.0991, 3.9364, 19.1208)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E7B #4C7B1E
analogous
#1F1E7B #4D1E7B #7B1E7A
triadic
#4D1E7B #7B4D1E #1E7B4D
tetradic
#4D1E7B #7B1F1E #4C7B1E #1E7A7B
square
#4D1E7B #7B1F1E #4C7B1E #1E7A7B
split-complementary
#4D1E7B #7A7B1E #1E7B1F
monochromatic
#0F0619 #2E124A #4D1E7B #6C2AAC #8A42D1

Accessibility & contrast

On white

11.75
#4D1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E7B
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E7B#FFFFFF#000000##FFFFFF
##4D1E7B1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#43354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1e7b;
/* rgb */ color: rgb(77, 30, 123);
/* oklch */ color: oklch(35.8% 0.148 302.4);
Tailwind
colors: {
  custom: {
    50: '#835fa2',
    500: '#4d1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e7b;
$custom-light: #835fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e7b",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 270.323,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.14844,
    "h": 302.4
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#4D1E7B
secondary
#7AAE46
accent
#E44493
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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