#4A1A80#4A1A80

#4A1A80 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.158 H 299.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#4A1A80
RGBrgb(74, 26, 128)
HSLhsl(268, 66%, 30%)
HSVhsv(268, 80%, 50%)
CMYKcmyk(42.2%, 79.7%, 0%, 49.8%)
CIE-LABlab(22.84, 43.06, -48.17)
CIE-LCHlch(22.84, 64.61, 311.80°)
OKLaboklab(35.44% 0.0775 -0.1377)
OKLCHoklch(35.44% 0.158 299.4)
XYZxyz(7.0887, 3.7531, 20.7688)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A80 #50801A
analogous
#1A1D80 #4A1A80 #7D1A80
triadic
#4A1A80 #804A1A #1A804A
tetradic
#4A1A80 #801A1D #50801A #1A807D
square
#4A1A80 #801A1D #50801A #1A807D
split-complementary
#4A1A80 #807D1A #1D801A
monochromatic
#0F051A #2D104D #4A1A80 #6724B3 #863DD8

Accessibility & contrast

On white

12.00
#4A1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A80
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A80#FFFFFF#000000##FFFFFF
##4A1A801.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1a80;
/* rgb */ color: rgb(74, 26, 128);
/* oklch */ color: oklch(35.4% 0.158 299.4);
Tailwind
colors: {
  custom: {
    50: '#825da6',
    500: '#4a1a80',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a80;
$custom-light: #825da6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a80",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 268.235,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35435,
    "c": 0.15805,
    "h": 299.4
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#4A1A80
secondary
#7EB442
accent
#E93F99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1A80

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

Preview Lab → · Contrast checker → · Palette generator →

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