#4A1A8B#4A1A8B

#4A1A8B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.170 H 295.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#4A1A8B
RGBrgb(74, 26, 139)
HSLhsl(265, 68%, 32%)
HSVhsv(265, 81%, 55%)
CMYKcmyk(46.8%, 81.3%, 0%, 45.5%)
CIE-LABlab(23.86, 45.94, -53.39)
CIE-LCHlch(23.86, 70.44, 310.71°)
OKLaboklab(36.47% 0.0741 -0.1531)
OKLCHoklch(36.47% 0.17 295.8)
XYZxyz(7.8524, 4.0585, 24.7907)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A8B #5B8B1A
analogous
#1A228B #4A1A8B #831A8B
triadic
#4A1A8B #8B4A1A #1A8B4A
tetradic
#4A1A8B #8B1A22 #5B8B1A #1A8B83
square
#4A1A8B #8B1A22 #5B8B1A #1A8B83
split-complementary
#4A1A8B #8B831A #228B1A
monochromatic
#130724 #2F1057 #4A1A8B #6524BF #8443DC

Accessibility & contrast

On white

11.59
#4A1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A8B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A8B#FFFFFF#000000##FFFFFF
##4A1A8B1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#383A53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1a8b;
/* rgb */ color: rgb(74, 26, 139);
/* oklch */ color: oklch(36.5% 0.170 295.8);
Tailwind
colors: {
  custom: {
    50: '#845dae',
    500: '#4a1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a8b;
$custom-light: #845dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a8b",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 265.487,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36466,
    "c": 0.17008,
    "h": 295.8
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#4A1A8B
secondary
#8ABD44
accent
#EB3CA1
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4A1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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