#4A1C8C#4A1C8C

#4A1C8C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.169 H 295.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4A1C8C
RGBrgb(74, 28, 140)
HSLhsl(265, 67%, 33%)
HSVhsv(265, 80%, 55%)
CMYKcmyk(47.1%, 80%, 0%, 45.1%)
CIE-LABlab(24.26, 45.34, -53.37)
CIE-LCHlch(24.26, 70.03, 310.35°)
OKLaboklab(36.77% 0.0723 -0.153)
OKLCHoklch(36.77% 0.169 295.3)
XYZxyz(7.9716, 4.1796, 25.1926)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C8C #5E8C1C
analogous
#1C268C #4A1C8C #821C8C
triadic
#4A1C8C #8C4A1C #1C8C4A
tetradic
#4A1C8C #8C1C26 #5E8C1C #1C8C82
square
#4A1C8C #8C1C26 #5E8C1C #1C8C82
split-complementary
#4A1C8C #8C821C #268C1C
monochromatic
#140826 #2F1259 #4A1C8C #6526BF #8448DA

Accessibility & contrast

On white

11.44
#4A1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1C8C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C8C#FFFFFF#000000##FFFFFF
##4A1C8C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#373B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1c8c;
/* rgb */ color: rgb(74, 28, 140);
/* oklch */ color: oklch(36.8% 0.169 295.3);
Tailwind
colors: {
  custom: {
    50: '#845eaf',
    500: '#4a1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c8c;
$custom-light: #845eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c8c",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 264.643,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36768,
    "c": 0.16923,
    "h": 295.3
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#4A1C8C
secondary
#8CBC48
accent
#EA3EA3
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4A1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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