#4D1889#4D1889

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

Color values

HEX#4D1889
RGBrgb(77, 24, 137)
HSLhsl(268, 70%, 32%)
HSVhsv(268, 82%, 54%)
CMYKcmyk(43.8%, 82.5%, 0%, 46.3%)
CIE-LABlab(23.79, 46.69, -52.25)
CIE-LCHlch(23.79, 70.07, 311.79°)
OKLaboklab(36.45% 0.0811 -0.1496)
OKLCHoklch(36.45% 0.17 298.5)
XYZxyz(7.9014, 4.0371, 24.0250)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1889 #548918
analogous
#181B89 #4D1889 #861889
triadic
#4D1889 #894D18 #18894D
tetradic
#4D1889 #89181B #548918 #188986
square
#4D1889 #89181B #548918 #188986
split-complementary
#4D1889 #898618 #1B8918
monochromatic
#120621 #300F55 #4D1889 #6A21BD #893EDD

Accessibility & contrast

On white

11.62
#4D1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1889
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1889#FFFFFF#000000##FFFFFF
##4D18891.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1889;
/* rgb */ color: rgb(77, 24, 137);
/* oklch */ color: oklch(36.4% 0.170 298.5);
Tailwind
colors: {
  custom: {
    50: '#855cac',
    500: '#4d1889',
    950: '#000000',
  },
}
SCSS
$custom: #4d1889;
$custom-light: #855cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1889",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 268.142,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36447,
    "c": 0.17014,
    "h": 298.5
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#4D1889
secondary
#82BD40
accent
#ED3B99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1889

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

Preview Lab → · Contrast checker → · Palette generator →

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