#4A1A7D#4A1A7D

#4A1A7D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.155 H 300.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#4A1A7D
RGBrgb(74, 26, 125)
HSLhsl(269, 66%, 30%)
HSVhsv(269, 79%, 49%)
CMYKcmyk(40.8%, 79.2%, 0%, 51%)
CIE-LABlab(22.57, 42.28, -46.71)
CIE-LCHlch(22.57, 63.00, 312.15°)
OKLaboklab(35.16% 0.0784 -0.1335)
OKLCHoklch(35.16% 0.155 300.4)
XYZxyz(6.8942, 3.6752, 19.7442)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A7D #4D7D1A
analogous
#1A1B7D #4A1A7D #7C1A7D
triadic
#4A1A7D #7D4A1A #1A7D4A
tetradic
#4A1A7D #7D1A1B #4D7D1A #1A7D7C
square
#4A1A7D #7D1A1B #4D7D1A #1A7D7C
split-complementary
#4A1A7D #7D7C1A #1B7D1A
monochromatic
#0F0519 #2C0F4A #4A1A7D #6825B0 #863BD6

Accessibility & contrast

On white

12.10
#4A1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4A1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A7D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A7D#FFFFFF#000000##FFFFFF
##4A1A7D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#3E344B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a1a7d;
/* rgb */ color: rgb(74, 26, 125);
/* oklch */ color: oklch(35.2% 0.155 300.4);
Tailwind
colors: {
  custom: {
    50: '#825ca3',
    500: '#4a1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a7d;
$custom-light: #825ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a7d",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 269.091,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35162,
    "c": 0.15476,
    "h": 300.4
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#4A1A7D
secondary
#7BB142
accent
#E93F96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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