#4A1980#4A1980

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

Color values

HEX#4A1980
RGBrgb(74, 25, 128)
HSLhsl(269, 67%, 30%)
HSVhsv(269, 80%, 50%)
CMYKcmyk(42.2%, 80.5%, 0%, 49.8%)
CIE-LABlab(22.69, 43.50, -48.41)
CIE-LCHlch(22.69, 65.08, 311.94°)
OKLaboklab(35.33% 0.0784 -0.1384)
OKLCHoklch(35.33% 0.159 299.5)
XYZxyz(7.0670, 3.7095, 20.7616)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1980 #4F8019
analogous
#191B80 #4A1980 #7E1980
triadic
#4A1980 #804A19 #19804A
tetradic
#4A1980 #80191B #4F8019 #19807E
square
#4A1980 #80191B #4F8019 #19807E
split-complementary
#4A1980 #807E19 #1B8019
monochromatic
#0F051A #2C0F4D #4A1980 #6823B3 #863BD9

Accessibility & contrast

On white

12.06
#4A1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1980
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1980#FFFFFF#000000##FFFFFF
##4A19801.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.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: #4a1980;
/* rgb */ color: rgb(74, 25, 128);
/* oklch */ color: oklch(35.3% 0.159 299.5);
Tailwind
colors: {
  custom: {
    50: '#825ca6',
    500: '#4a1980',
    950: '#000000',
  },
}
SCSS
$custom: #4a1980;
$custom-light: #825ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1980",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 268.544,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.3533,
    "c": 0.1591,
    "h": 299.5
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#4A1980
secondary
#7DB441
accent
#EA3E98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1980

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

Preview Lab → · Contrast checker → · Palette generator →

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