#4D2889#4D2889

#4D2889 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.152 H 295.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4D2889
RGBrgb(77, 40, 137)
HSLhsl(263, 55%, 35%)
HSVhsv(263, 71%, 54%)
CMYKcmyk(43.8%, 70.8%, 0%, 46.3%)
CIE-LABlab(26.45, 39.14, -47.90)
CIE-LCHlch(26.45, 61.86, 309.25°)
OKLaboklab(38.32% 0.0663 -0.1369)
OKLCHoklch(38.32% 0.152 295.8)
XYZxyz(8.3335, 4.9013, 24.1690)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2889 #648928
analogous
#283389 #4D2889 #7E2889
triadic
#4D2889 #894D28 #28894D
tetradic
#4D2889 #892833 #648928 #28897E
square
#4D2889 #892833 #648928 #28897E
split-complementary
#4D2889 #897E28 #338928
monochromatic
#180C2A #321A5A #4D2889 #6836B8 #885CCF

Accessibility & contrast

On white

10.60
#4D2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4D2889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2889
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2889#FFFFFF#000000##FFFFFF
##4D28891.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#3D4055
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2889;
/* rgb */ color: rgb(77, 40, 137);
/* oklch */ color: oklch(38.3% 0.152 295.8);
Tailwind
colors: {
  custom: {
    50: '#8465ac',
    500: '#4d2889',
    950: '#000000',
  },
}
SCSS
$custom: #4d2889;
$custom-light: #8465ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2889",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 262.887,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38319,
    "c": 0.15215,
    "h": 295.8
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#4D2889
secondary
#91B558
accent
#DE4AA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2889

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

Preview Lab → · Contrast checker → · Palette generator →

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