#4A1381#4A1381

#4A1381 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.166 H 299.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4A1381
RGBrgb(74, 19, 129)
HSLhsl(270, 74%, 29%)
HSVhsv(270, 85%, 51%)
CMYKcmyk(42.6%, 85.3%, 0%, 49.4%)
CIE-LABlab(21.97, 46.11, -50.22)
CIE-LCHlch(21.97, 68.18, 312.56°)
OKLaboklab(34.86% 0.0828 -0.1437)
OKLCHoklch(34.86% 0.166 299.9)
XYZxyz(7.0184, 3.5065, 21.0717)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1381 #4A8113
analogous
#131381 #4A1381 #811381
triadic
#4A1381 #814A13 #13814A
tetradic
#4A1381 #811313 #4A8113 #138181
square
#4A1381 #811313 #4A8113 #138181
split-complementary
#4A1381 #818113 #138113
monochromatic
#0F041B #2B0B4C #4A1381 #691BB6 #872EE0

Accessibility & contrast

On white

12.34
#4A1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1381
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1381#FFFFFF#000000##FFFFFF
##4A13811.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#3D334C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1381;
/* rgb */ color: rgb(74, 19, 129);
/* oklch */ color: oklch(34.9% 0.166 299.9);
Tailwind
colors: {
  custom: {
    50: '#8359a7',
    500: '#4a1381',
    950: '#000000',
  },
}
SCSS
$custom: #4a1381;
$custom-light: #8359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1381",
  "rgb": {
    "r": 74,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 270,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34859,
    "c": 0.16583,
    "h": 299.9
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#4A1381
secondary
#78B63A
accent
#F13794
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1381

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

Preview Lab → · Contrast checker → · Palette generator →

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