#4A1D9A#4A1D9A

#4A1D9A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.184 H 291.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4A1D9A
RGBrgb(74, 29, 154)
HSLhsl(262, 68%, 36%)
HSVhsv(262, 81%, 60%)
CMYKcmyk(51.9%, 81.2%, 0%, 39.6%)
CIE-LABlab(25.77, 48.67, -59.55)
CIE-LCHlch(25.77, 76.91, 309.26°)
OKLaboklab(38.23% 0.067 -0.1711)
OKLCHoklch(38.23% 0.184 291.4)
XYZxyz(9.0945, 4.6673, 30.9873)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D9A #6D9A1D
analogous
#1D2E9A #4A1D9A #881D9A
triadic
#4A1D9A #9A4A1D #1D9A4A
tetradic
#4A1D9A #9A1D2E #6D9A1D #1D9A88
square
#4A1D9A #9A1D2E #6D9A1D #1D9A88
split-complementary
#4A1D9A #9A881D #2E9A1D
monochromatic
#190A33 #311366 #4A1D9A #6327CE #8553DF

Accessibility & contrast

On white

10.86
#4A1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4A1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D9A
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D9A#FFFFFF#000000##FFFFFF
##4A1D9A1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#2E425C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a1d9a;
/* rgb */ color: rgb(74, 29, 154);
/* oklch */ color: oklch(38.2% 0.184 291.4);
Tailwind
colors: {
  custom: {
    50: '#8660b9',
    500: '#4a1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d9a;
$custom-light: #8660b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d9a",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 261.6,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38229,
    "c": 0.18375,
    "h": 291.4
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#4A1D9A
secondary
#99C251
accent
#EB3DAC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4A1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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