#4D1789#4D1789

#4D1789 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.171 H 298.6°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4D1789
RGBrgb(77, 23, 137)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 54%)
CMYKcmyk(43.8%, 83.2%, 0%, 46.3%)
CIE-LABlab(23.66, 47.08, -52.46)
CIE-LCHlch(23.66, 70.49, 311.91°)
OKLaboklab(36.35% 0.0819 -0.1502)
OKLCHoklch(36.35% 0.171 298.6)
XYZxyz(7.8812, 3.9966, 24.0183)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1789 #538917
analogous
#171A89 #4D1789 #861789
triadic
#4D1789 #894D17 #17894D
tetradic
#4D1789 #89171A #538917 #178986
square
#4D1789 #89171A #538917 #178986
split-complementary
#4D1789 #898617 #1A8917
monochromatic
#120520 #300E55 #4D1789 #6A20BD #893CDE

Accessibility & contrast

On white

11.67
#4D1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1789
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1789#FFFFFF#000000##FFFFFF
##4D17891.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#3E3851
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1789;
/* rgb */ color: rgb(77, 23, 137);
/* oklch */ color: oklch(36.4% 0.171 298.6);
Tailwind
colors: {
  custom: {
    50: '#865cac',
    500: '#4d1789',
    950: '#000000',
  },
}
SCSS
$custom: #4d1789;
$custom-light: #865cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1789",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 268.421,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36354,
    "c": 0.17106,
    "h": 298.6
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#4D1789
secondary
#81BD3F
accent
#EE3A99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1789

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

Preview Lab → · Contrast checker → · Palette generator →

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