#4A1884#4A1884

#4A1884 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.164 H 298.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4A1884
RGBrgb(74, 24, 132)
HSLhsl(268, 69%, 31%)
HSVhsv(268, 82%, 52%)
CMYKcmyk(43.9%, 81.8%, 0%, 48.2%)
CIE-LABlab(22.91, 44.95, -50.57)
CIE-LCHlch(22.91, 67.66, 311.63°)
OKLaboklab(35.6% 0.078 -0.1448)
OKLCHoklch(35.6% 0.164 298.3)
XYZxyz(7.3145, 3.7749, 22.1686)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1884 #528418
analogous
#181C84 #4A1884 #801884
triadic
#4A1884 #844A18 #18844A
tetradic
#4A1884 #84181C #528418 #188480
square
#4A1884 #84181C #528418 #188480
split-complementary
#4A1884 #848018 #1C8418
monochromatic
#10051C #2D0F50 #4A1884 #6721B8 #853BDB

Accessibility & contrast

On white

11.97
#4A1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1884
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1884#FFFFFF#000000##FFFFFF
##4A18841.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#3B364E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1884;
/* rgb */ color: rgb(74, 24, 132);
/* oklch */ color: oklch(35.6% 0.164 298.3);
Tailwind
colors: {
  custom: {
    50: '#835ca9',
    500: '#4a1884',
    950: '#000000',
  },
}
SCSS
$custom: #4a1884;
$custom-light: #835ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1884",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 267.778,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35601,
    "c": 0.16443,
    "h": 298.3
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#4A1884
secondary
#80B840
accent
#EC3C9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1884

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

Preview Lab → · Contrast checker → · Palette generator →

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