#4A1481#4A1481

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

Color values

HEX#4A1481
RGBrgb(74, 20, 129)
HSLhsl(270, 73%, 29%)
HSVhsv(270, 84%, 51%)
CMYKcmyk(42.6%, 84.5%, 0%, 49.4%)
CIE-LABlab(22.09, 45.75, -50.02)
CIE-LCHlch(22.09, 67.78, 312.45°)
OKLaboklab(34.95% 0.082 -0.1431)
OKLCHoklch(34.95% 0.165 299.8)
XYZxyz(7.0356, 3.5411, 21.0774)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1481 #4B8114
analogous
#141581 #4A1481 #811481
triadic
#4A1481 #814A14 #14814A
tetradic
#4A1481 #811415 #4B8114 #148181
square
#4A1481 #811415 #4B8114 #148181
split-complementary
#4A1481 #818114 #158114
monochromatic
#0F041A #2C0C4C #4A1481 #681CB6 #8730DF

Accessibility & contrast

On white

12.29
#4A1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4A1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1481
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1481#FFFFFF#000000##FFFFFF
##4A14811.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1481;
/* rgb */ color: rgb(74, 20, 129);
/* oklch */ color: oklch(34.9% 0.165 299.8);
Tailwind
colors: {
  custom: {
    50: '#835aa7',
    500: '#4a1481',
    950: '#000000',
  },
}
SCSS
$custom: #4a1481;
$custom-light: #835aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1481",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 269.725,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.16497,
    "h": 299.8
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#4A1481
secondary
#79B63B
accent
#F03895
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1481

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

Preview Lab → · Contrast checker → · Palette generator →

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