#4A1FA1#4A1FA1

#4A1FA1 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.190 H 289.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4A1FA1
RGBrgb(74, 31, 161)
HSLhsl(260, 68%, 38%)
HSVhsv(260, 81%, 63%)
CMYKcmyk(54%, 80.7%, 0%, 36.9%)
CIE-LABlab(26.76, 49.71, -62.18)
CIE-LCHlch(26.76, 79.61, 308.64°)
OKLaboklab(39.13% 0.0633 -0.1788)
OKLCHoklch(39.13% 0.19 289.5)
XYZxyz(9.7452, 5.0086, 34.1646)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1FA1 #76A11F
analogous
#1F35A1 #4A1FA1 #8B1FA1
triadic
#4A1FA1 #A14A1F #1FA14A
tetradic
#4A1FA1 #A11F35 #76A11F #1FA18B
square
#4A1FA1 #A11F35 #76A11F #1FA18B
split-complementary
#4A1FA1 #A18B1F #35A11F
monochromatic
#1B0B3A #32156E #4A1FA1 #6229D4 #875BDF

Accessibility & contrast

On white

10.49
#4A1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4A1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1FA1
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1FA1#FFFFFF#000000##FFFFFF
##4A1FA11.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#284560
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a1fa1;
/* rgb */ color: rgb(74, 31, 161);
/* oklch */ color: oklch(39.1% 0.190 289.5);
Tailwind
colors: {
  custom: {
    50: '#8761be',
    500: '#4a1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4a1fa1;
$custom-light: #8761be;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1fa1",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 259.846,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39129,
    "c": 0.1897,
    "h": 289.5
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#4A1FA1
secondary
#A0C458
accent
#EB3DB1
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4A1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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