#4D1A89#4D1A89

#4D1A89 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.168 H 298.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4D1A89
RGBrgb(77, 26, 137)
HSLhsl(268, 68%, 32%)
HSVhsv(268, 81%, 54%)
CMYKcmyk(43.8%, 81%, 0%, 46.3%)
CIE-LABlab(24.07, 45.88, -51.79)
CIE-LCHlch(24.07, 69.19, 311.54°)
OKLaboklab(36.64% 0.0795 -0.1482)
OKLCHoklch(36.64% 0.168 298.2)
XYZxyz(7.9441, 4.1226, 24.0393)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A89 #56891A
analogous
#1A1E89 #4D1A89 #851A89
triadic
#4D1A89 #894D1A #1A894D
tetradic
#4D1A89 #891A1E #56891A #1A8985
square
#4D1A89 #891A1E #56891A #1A8985
split-complementary
#4D1A89 #89851A #1E891A
monochromatic
#130622 #301056 #4D1A89 #6A24BC #8942DB

Accessibility & contrast

On white

11.51
#4D1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A89
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A89#FFFFFF#000000##FFFFFF
##4D1A891.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1a89;
/* rgb */ color: rgb(77, 26, 137);
/* oklch */ color: oklch(36.6% 0.168 298.2);
Tailwind
colors: {
  custom: {
    50: '#855dac',
    500: '#4d1a89',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a89;
$custom-light: #855dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a89",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 267.568,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.16824,
    "h": 298.2
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#4D1A89
secondary
#84BC43
accent
#EB3D9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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