#4A1880#4A1880

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

Color values

HEX#4A1880
RGBrgb(74, 24, 128)
HSLhsl(269, 68%, 30%)
HSVhsv(269, 81%, 50%)
CMYKcmyk(42.2%, 81.3%, 0%, 49.8%)
CIE-LABlab(22.54, 43.92, -48.65)
CIE-LCHlch(22.54, 65.54, 312.07°)
OKLaboklab(35.23% 0.0792 -0.1391)
OKLCHoklch(35.23% 0.16 299.7)
XYZxyz(7.0460, 3.6675, 20.7546)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1880 #4E8018
analogous
#181A80 #4A1880 #7E1880
triadic
#4A1880 #804A18 #18804A
tetradic
#4A1880 #80181A #4E8018 #18807E
square
#4A1880 #80181A #4E8018 #18807E
split-complementary
#4A1880 #807E18 #1A8018
monochromatic
#0F051A #2C0E4C #4A1880 #6822B4 #8639DA

Accessibility & contrast

On white

12.11
#4A1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1880
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1880#FFFFFF#000000##FFFFFF
##4A18801.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1880;
/* rgb */ color: rgb(74, 24, 128);
/* oklch */ color: oklch(35.2% 0.160 299.7);
Tailwind
colors: {
  custom: {
    50: '#825ca6',
    500: '#4a1880',
    950: '#000000',
  },
}
SCSS
$custom: #4a1880;
$custom-light: #825ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1880",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 268.846,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35228,
    "c": 0.16012,
    "h": 299.7
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#4A1880
secondary
#7CB440
accent
#EB3D97
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1880

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

Preview Lab → · Contrast checker → · Palette generator →

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