#4A1781#4A1781

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

Color values

HEX#4A1781
RGBrgb(74, 23, 129)
HSLhsl(269, 70%, 30%)
HSVhsv(269, 82%, 51%)
CMYKcmyk(42.6%, 82.2%, 0%, 49.4%)
CIE-LABlab(22.49, 44.59, -49.37)
CIE-LCHlch(22.49, 66.52, 312.09°)
OKLaboklab(35.22% 0.0797 -0.1412)
OKLCHoklch(35.22% 0.162 299.5)
XYZxyz(7.0919, 3.6535, 21.0962)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1781 #4E8117
analogous
#171981 #4A1781 #7F1781
triadic
#4A1781 #814A17 #17814A
tetradic
#4A1781 #811719 #4E8117 #17817F
square
#4A1781 #811719 #4E8117 #17817F
split-complementary
#4A1781 #817F17 #198117
monochromatic
#0F051A #2C0E4D #4A1781 #6820B5 #8637DB

Accessibility & contrast

On white

12.13
#4A1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4A1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1781
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1781#FFFFFF#000000##FFFFFF
##4A17811.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1781;
/* rgb */ color: rgb(74, 23, 129);
/* oklch */ color: oklch(35.2% 0.162 299.5);
Tailwind
colors: {
  custom: {
    50: '#835ba6',
    500: '#4a1781',
    950: '#000000',
  },
}
SCSS
$custom: #4a1781;
$custom-light: #835ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1781",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 268.868,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35222,
    "c": 0.16218,
    "h": 299.5
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#4A1781
secondary
#7CB53E
accent
#ED3B97
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1781

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

Preview Lab → · Contrast checker → · Palette generator →

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