#4A1881#4A1881

#4A1881 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.161 H 299.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4A1881
RGBrgb(74, 24, 129)
HSLhsl(269, 69%, 30%)
HSVhsv(269, 81%, 51%)
CMYKcmyk(42.6%, 81.4%, 0%, 49.4%)
CIE-LABlab(22.63, 44.18, -49.13)
CIE-LCHlch(22.63, 66.07, 311.96°)
OKLaboklab(35.32% 0.0789 -0.1405)
OKLCHoklch(35.32% 0.161 299.3)
XYZxyz(7.1121, 3.6940, 21.1029)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1881 #4F8118
analogous
#181B81 #4A1881 #7E1881
triadic
#4A1881 #814A18 #18814A
tetradic
#4A1881 #81181B #4F8118 #18817E
square
#4A1881 #81181B #4F8118 #18817E
split-complementary
#4A1881 #817E18 #1B8118
monochromatic
#0F051A #2C0E4D #4A1881 #6822B5 #8639DA

Accessibility & contrast

On white

12.08
#4A1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1881
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1881#FFFFFF#000000##FFFFFF
##4A18811.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.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: #4a1881;
/* rgb */ color: rgb(74, 24, 129);
/* oklch */ color: oklch(35.3% 0.161 299.3);
Tailwind
colors: {
  custom: {
    50: '#835ca6',
    500: '#4a1881',
    950: '#000000',
  },
}
SCSS
$custom: #4a1881;
$custom-light: #835ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1881",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 268.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.35321,
    "c": 0.1612,
    "h": 299.3
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#4A1881
secondary
#7DB540
accent
#EB3C98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1881

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

Preview Lab → · Contrast checker → · Palette generator →

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