#4A1780#4A1780

#4A1780 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.161 H 299.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4A1780
RGBrgb(74, 23, 128)
HSLhsl(269, 70%, 30%)
HSVhsv(269, 82%, 50%)
CMYKcmyk(42.2%, 82%, 0%, 49.8%)
CIE-LABlab(22.40, 44.33, -48.89)
CIE-LCHlch(22.40, 65.99, 312.20°)
OKLaboklab(35.13% 0.0801 -0.1398)
OKLCHoklch(35.13% 0.161 299.8)
XYZxyz(7.0257, 3.6271, 20.7478)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1780 #4D8017
analogous
#171980 #4A1780 #7F1780
triadic
#4A1780 #804A17 #17804A
tetradic
#4A1780 #801719 #4D8017 #17807F
square
#4A1780 #801719 #4D8017 #17807F
split-complementary
#4A1780 #807F17 #198017
monochromatic
#0F051A #2C0E4C #4A1780 #6820B4 #8636DB

Accessibility & contrast

On white

12.17
#4A1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1780
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1780#FFFFFF#000000##FFFFFF
##4A17801.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1780;
/* rgb */ color: rgb(74, 23, 128);
/* oklch */ color: oklch(35.1% 0.161 299.8);
Tailwind
colors: {
  custom: {
    50: '#835ba6',
    500: '#4a1780',
    950: '#000000',
  },
}
SCSS
$custom: #4a1780;
$custom-light: #835ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1780",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 269.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35129,
    "c": 0.16112,
    "h": 299.8
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#4A1780
secondary
#7BB43E
accent
#EC3B96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1780

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

Preview Lab → · Contrast checker → · Palette generator →

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