#4A1C8B#4A1C8B

#4A1C8B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.168 H 295.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#4A1C8B
RGBrgb(74, 28, 139)
HSLhsl(265, 66%, 33%)
HSVhsv(265, 80%, 55%)
CMYKcmyk(46.8%, 79.9%, 0%, 45.5%)
CIE-LABlab(24.16, 45.08, -52.91)
CIE-LCHlch(24.16, 69.51, 310.43°)
OKLaboklab(36.67% 0.0726 -0.1516)
OKLCHoklch(36.67% 0.168 295.6)
XYZxyz(7.8982, 4.1502, 24.8060)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C8B #5D8B1C
analogous
#1C258B #4A1C8B #811C8B
triadic
#4A1C8B #8B4A1C #1C8B4A
tetradic
#4A1C8B #8B1C25 #5D8B1C #1C8B81
square
#4A1C8B #8B1C25 #5D8B1C #1C8B81
split-complementary
#4A1C8B #8B811C #258B1C
monochromatic
#140725 #2F1258 #4A1C8B #6526BE #8447DA

Accessibility & contrast

On white

11.48
#4A1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C8B
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C8B#FFFFFF#000000##FFFFFF
##4A1C8B1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#383B53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1c8b;
/* rgb */ color: rgb(74, 28, 139);
/* oklch */ color: oklch(36.7% 0.168 295.6);
Tailwind
colors: {
  custom: {
    50: '#845eae',
    500: '#4a1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c8b;
$custom-light: #845eae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c8b",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 264.865,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36673,
    "c": 0.16812,
    "h": 295.6
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#4A1C8B
secondary
#8BBC47
accent
#E93EA3
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4A1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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