#4A1981#4A1981

#4A1981 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.160 H 299.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#4A1981
RGBrgb(74, 25, 129)
HSLhsl(268, 68%, 30%)
HSVhsv(268, 81%, 51%)
CMYKcmyk(42.6%, 80.6%, 0%, 49.4%)
CIE-LABlab(22.78, 43.75, -48.89)
CIE-LCHlch(22.78, 65.61, 311.82°)
OKLaboklab(35.42% 0.0781 -0.1399)
OKLCHoklch(35.42% 0.16 299.2)
XYZxyz(7.1331, 3.7360, 21.1099)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1981 #508119
analogous
#191C81 #4A1981 #7E1981
triadic
#4A1981 #814A19 #19814A
tetradic
#4A1981 #81191C #508119 #19817E
square
#4A1981 #81191C #508119 #19817E
split-complementary
#4A1981 #817E19 #1C8119
monochromatic
#0F051A #2D0F4E #4A1981 #6723B4 #863BD9

Accessibility & contrast

On white

12.02
#4A1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1981
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1981#FFFFFF#000000##FFFFFF
##4A19811.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#3D354D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a1981;
/* rgb */ color: rgb(74, 25, 129);
/* oklch */ color: oklch(35.4% 0.160 299.2);
Tailwind
colors: {
  custom: {
    50: '#835ca6',
    500: '#4a1981',
    950: '#000000',
  },
}
SCSS
$custom: #4a1981;
$custom-light: #835ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1981",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 268.269,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35422,
    "c": 0.16019,
    "h": 299.2
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#4A1981
secondary
#7EB541
accent
#EA3D99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1981

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

Preview Lab → · Contrast checker → · Palette generator →

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