#4D1E96#4D1E96

#4D1E96 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.178 H 293.9°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4D1E96
RGBrgb(77, 30, 150)
HSLhsl(264, 67%, 35%)
HSVhsv(264, 80%, 59%)
CMYKcmyk(48.7%, 80%, 0%, 41.2%)
CIE-LABlab(25.89, 47.59, -56.88)
CIE-LCHlch(25.89, 74.16, 309.92°)
OKLaboklab(38.28% 0.0723 -0.1632)
OKLCHoklch(38.28% 0.179 293.9)
XYZxyz(9.0283, 4.7081, 29.2813)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E96 #67961E
analogous
#1E2B96 #4D1E96 #891E96
triadic
#4D1E96 #964D1E #1E964D
tetradic
#4D1E96 #961E2B #67961E #1E9689
square
#4D1E96 #961E2B #67961E #1E9689
split-complementary
#4D1E96 #96891E #2B961E
monochromatic
#190A30 #331463 #4D1E96 #6728C9 #8852DC

Accessibility & contrast

On white

10.82
#4D1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E96
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E96#FFFFFF#000000##FFFFFF
##4D1E961.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#37405A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d1e96;
/* rgb */ color: rgb(77, 30, 150);
/* oklch */ color: oklch(38.3% 0.178 293.9);
Tailwind
colors: {
  custom: {
    50: '#8760b6',
    500: '#4d1e96',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e96;
$custom-light: #8760b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e96",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 263.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38278,
    "c": 0.1785,
    "h": 293.9
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#4D1E96
secondary
#94BF50
accent
#EA3EA6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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