#4A1C82#4A1C82

#4A1C82 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.158 H 298.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4A1C82
RGBrgb(74, 28, 130)
HSLhsl(267, 65%, 31%)
HSVhsv(267, 78%, 51%)
CMYKcmyk(43.1%, 78.5%, 0%, 49%)
CIE-LABlab(23.33, 42.69, -48.62)
CIE-LCHlch(23.33, 64.70, 311.28°)
OKLaboklab(35.84% 0.0752 -0.1391)
OKLCHoklch(35.84% 0.158 298.4)
XYZxyz(7.2675, 3.8979, 21.4842)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C82 #54821C
analogous
#1C2182 #4A1C82 #7D1C82
triadic
#4A1C82 #824A1C #1C824A
tetradic
#4A1C82 #821C21 #54821C #1C827D
square
#4A1C82 #821C21 #54821C #1C827D
split-complementary
#4A1C82 #827D1C #21821C
monochromatic
#11061D #2D1150 #4A1C82 #6727B4 #8542D6

Accessibility & contrast

On white

11.80
#4A1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C82
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C82#FFFFFF#000000##FFFFFF
##4A1C821.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#3C374E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1c82;
/* rgb */ color: rgb(74, 28, 130);
/* oklch */ color: oklch(35.8% 0.158 298.4);
Tailwind
colors: {
  custom: {
    50: '#825ea7',
    500: '#4a1c82',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c82;
$custom-light: #825ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c82",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 267.059,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35837,
    "c": 0.15811,
    "h": 298.4
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#4A1C82
secondary
#82B544
accent
#E8409C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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