#4A1C8D#4A1C8D

#4A1C8D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.170 H 295.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4A1C8D
RGBrgb(74, 28, 141)
HSLhsl(264, 67%, 33%)
HSVhsv(264, 80%, 55%)
CMYKcmyk(47.5%, 80.1%, 0%, 44.7%)
CIE-LABlab(24.35, 45.61, -53.84)
CIE-LCHlch(24.35, 70.56, 310.27°)
OKLaboklab(36.86% 0.072 -0.1544)
OKLCHoklch(36.86% 0.17 295)
XYZxyz(8.0457, 4.2092, 25.5827)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C8D #5F8D1C
analogous
#1C268D #4A1C8D #821C8D
triadic
#4A1C8D #8D4A1C #1C8D4A
tetradic
#4A1C8D #8D1C26 #5F8D1C #1C8D82
square
#4A1C8D #8D1C26 #5F8D1C #1C8D82
split-complementary
#4A1C8D #8D821C #268D1C
monochromatic
#140827 #2F125A #4A1C8D #6526C0 #8449DB

Accessibility & contrast

On white

11.40
#4A1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4A1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C8D
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C8D#FFFFFF#000000##FFFFFF
##4A1C8D1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1c8d;
/* rgb */ color: rgb(74, 28, 141);
/* oklch */ color: oklch(36.9% 0.170 295.0);
Tailwind
colors: {
  custom: {
    50: '#845eaf',
    500: '#4a1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c8d;
$custom-light: #845eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c8d",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 264.425,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36863,
    "c": 0.17033,
    "h": 295
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#4A1C8D
secondary
#8DBD48
accent
#EA3EA4
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4A1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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