#4D1689#4D1689

#4D1689 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.172 H 298.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4D1689
RGBrgb(77, 22, 137)
HSLhsl(269, 72%, 31%)
HSVhsv(269, 84%, 54%)
CMYKcmyk(43.8%, 83.9%, 0%, 46.3%)
CIE-LABlab(23.53, 47.46, -52.68)
CIE-LCHlch(23.53, 70.90, 312.02°)
OKLaboklab(36.27% 0.0826 -0.1508)
OKLCHoklch(36.27% 0.172 298.7)
XYZxyz(7.8617, 3.9576, 24.0118)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1689 #528916
analogous
#161889 #4D1689 #861689
triadic
#4D1689 #894D16 #16894D
tetradic
#4D1689 #891618 #528916 #168986
square
#4D1689 #891618 #528916 #168986
split-complementary
#4D1689 #898616 #188916
monochromatic
#120520 #2F0E54 #4D1689 #6B1EBE #893ADF

Accessibility & contrast

On white

11.72
#4D1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1689
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1689#FFFFFF#000000##FFFFFF
##4D16891.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1689;
/* rgb */ color: rgb(77, 22, 137);
/* oklch */ color: oklch(36.3% 0.172 298.7);
Tailwind
colors: {
  custom: {
    50: '#865cac',
    500: '#4d1689',
    950: '#000000',
  },
}
SCSS
$custom: #4d1689;
$custom-light: #865cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1689",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 268.696,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36265,
    "c": 0.17195,
    "h": 298.7
  },
  "luminance": 0.03958
}

Semantic roles & 50–950 ramp

primary
#4D1689
secondary
#80BD3E
accent
#EF3998
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1689

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

Preview Lab → · Contrast checker → · Palette generator →

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