#4A1C84#4A1C84

#4A1C84 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.160 H 297.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4A1C84
RGBrgb(74, 28, 132)
HSLhsl(267, 65%, 31%)
HSVhsv(267, 79%, 52%)
CMYKcmyk(43.9%, 78.8%, 0%, 48.2%)
CIE-LABlab(23.51, 43.22, -49.59)
CIE-LCHlch(23.51, 65.78, 311.07°)
OKLaboklab(36.02% 0.0746 -0.1419)
OKLCHoklch(36.02% 0.16 297.7)
XYZxyz(7.4031, 3.9522, 22.1981)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C84 #56841C
analogous
#1C2284 #4A1C84 #7E1C84
triadic
#4A1C84 #844A1C #1C844A
tetradic
#4A1C84 #841C22 #56841C #1C847E
square
#4A1C84 #841C22 #56841C #1C847E
split-complementary
#4A1C84 #847E1C #22841C
monochromatic
#11071F #2E1152 #4A1C84 #6627B6 #8543D7

Accessibility & contrast

On white

11.73
#4A1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C84
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C84#FFFFFF#000000##FFFFFF
##4A1C841.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#3B384F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1c84;
/* rgb */ color: rgb(74, 28, 132);
/* oklch */ color: oklch(36.0% 0.160 297.7);
Tailwind
colors: {
  custom: {
    50: '#835ea9',
    500: '#4a1c84',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c84;
$custom-light: #835ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c84",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 266.538,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3602,
    "c": 0.16034,
    "h": 297.7
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#4A1C84
secondary
#85B745
accent
#E8409E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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