#4D1996#4D1996

#4D1996 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.183 H 294.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4D1996
RGBrgb(77, 25, 150)
HSLhsl(265, 71%, 34%)
HSVhsv(265, 83%, 59%)
CMYKcmyk(48.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(25.18, 49.64, -58.03)
CIE-LCHlch(25.18, 76.36, 310.54°)
OKLaboklab(37.79% 0.0759 -0.1665)
OKLCHoklch(37.79% 0.183 294.5)
XYZxyz(8.9117, 4.4748, 29.2424)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1996 #629619
analogous
#192396 #4D1996 #8C1996
triadic
#4D1996 #964D19 #19964D
tetradic
#4D1996 #961923 #629619 #19968C
square
#4D1996 #961923 #629619 #19968C
split-complementary
#4D1996 #968C19 #239619
monochromatic
#17082D #321062 #4D1996 #6822CA #8849E1

Accessibility & contrast

On white

11.08
#4D1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1996
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1996#FFFFFF#000000##FFFFFF
##4D19961.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#373E59
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d1996;
/* rgb */ color: rgb(77, 25, 150);
/* oklch */ color: oklch(37.8% 0.183 294.5);
Tailwind
colors: {
  custom: {
    50: '#875eb6',
    500: '#4d1996',
    950: '#000000',
  },
}
SCSS
$custom: #4d1996;
$custom-light: #875eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1996",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 264.96,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3779,
    "c": 0.18302,
    "h": 294.5
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#4D1996
secondary
#90C249
accent
#EE3AA3
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1996

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

Preview Lab → · Contrast checker → · Palette generator →

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