#4A1D8D#4A1D8D

#4A1D8D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.169 H 294.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4A1D8D
RGBrgb(74, 29, 141)
HSLhsl(264, 66%, 33%)
HSVhsv(264, 79%, 55%)
CMYKcmyk(47.5%, 79.4%, 0%, 44.7%)
CIE-LABlab(24.50, 45.17, -53.59)
CIE-LCHlch(24.50, 70.09, 310.13°)
OKLaboklab(36.97% 0.0711 -0.1537)
OKLCHoklch(36.97% 0.169 294.8)
XYZxyz(8.0698, 4.2574, 25.5907)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D8D #608D1D
analogous
#1D288D #4A1D8D #821D8D
triadic
#4A1D8D #8D4A1D #1D8D4A
tetradic
#4A1D8D #8D1D28 #608D1D #1D8D82
square
#4A1D8D #8D1D28 #608D1D #1D8D82
split-complementary
#4A1D8D #8D821D #288D1D
monochromatic
#150827 #2F135A #4A1D8D #6527C0 #844BDA

Accessibility & contrast

On white

11.34
#4A1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4A1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D8D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D8D#FFFFFF#000000##FFFFFF
##4A1D8D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#363C55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1d8d;
/* rgb */ color: rgb(74, 29, 141);
/* oklch */ color: oklch(37.0% 0.169 294.8);
Tailwind
colors: {
  custom: {
    50: '#845faf',
    500: '#4a1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d8d;
$custom-light: #845faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d8d",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 264.107,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3697,
    "c": 0.16934,
    "h": 294.8
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#4A1D8D
secondary
#8EBC4A
accent
#E93FA5
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4A1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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