#4A1A7A#4A1A7A

#4A1A7A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.151 H 301.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4A1A7A
RGBrgb(74, 26, 122)
HSLhsl(270, 65%, 29%)
HSVhsv(270, 79%, 48%)
CMYKcmyk(39.3%, 78.7%, 0%, 52.2%)
CIE-LABlab(22.30, 41.51, -45.23)
CIE-LCHlch(22.30, 61.39, 312.54°)
OKLaboklab(34.89% 0.0792 -0.1291)
OKLCHoklch(34.89% 0.151 301.5)
XYZxyz(6.7054, 3.5997, 18.7501)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A7A #4A7A1A
analogous
#1A1A7A #4A1A7A #7A1A7A
triadic
#4A1A7A #7A4A1A #1A7A4A
tetradic
#4A1A7A #7A1A1A #4A7A1A #1A7A7A
square
#4A1A7A #7A1A1A #4A7A1A #1A7A7A
split-complementary
#4A1A7A #7A7A1A #1A7A1A
monochromatic
#0F0519 #2B0F48 #4A1A7A #6925AC #8739D5

Accessibility & contrast

On white

12.21
#4A1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A7A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A7A#FFFFFF#000000##FFFFFF
##4A1A7A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#3F3349
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1a7a;
/* rgb */ color: rgb(74, 26, 122);
/* oklch */ color: oklch(34.9% 0.151 301.5);
Tailwind
colors: {
  custom: {
    50: '#825ca1',
    500: '#4a1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a7a;
$custom-light: #825ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a7a",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 270,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.15145,
    "h": 301.5
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#4A1A7A
secondary
#78AE41
accent
#E84094
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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