#4D1F89#4D1F89

#4D1F89 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.163 H 297.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#4D1F89
RGBrgb(77, 31, 137)
HSLhsl(266, 63%, 33%)
HSVhsv(266, 77%, 54%)
CMYKcmyk(43.8%, 77.4%, 0%, 46.3%)
CIE-LABlab(24.84, 43.68, -50.53)
CIE-LCHlch(24.84, 66.80, 310.84°)
OKLaboklab(37.18% 0.0753 -0.1446)
OKLCHoklch(37.18% 0.163 297.5)
XYZxyz(8.0647, 4.3637, 24.0794)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F89 #5B891F
analogous
#1F2689 #4D1F89 #821F89
triadic
#4D1F89 #894D1F #1F894D
tetradic
#4D1F89 #891F26 #5B891F #1F8982
square
#4D1F89 #891F26 #5B891F #1F8982
split-complementary
#4D1F89 #89821F #26891F
monochromatic
#150825 #311457 #4D1F89 #692ABB #884CD6

Accessibility & contrast

On white

11.21
#4D1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F89
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F89#FFFFFF#000000##FFFFFF
##4D1F891.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#3D3B53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1f89;
/* rgb */ color: rgb(77, 31, 137);
/* oklch */ color: oklch(37.2% 0.163 297.5);
Tailwind
colors: {
  custom: {
    50: '#8560ac',
    500: '#4d1f89',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f89;
$custom-light: #8560ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f89",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 266.038,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37177,
    "c": 0.16302,
    "h": 297.5
  },
  "luminance": 0.04364
}

Semantic roles & 50–950 ramp

primary
#4D1F89
secondary
#89B94B
accent
#E6429F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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