#4A1E97#4A1E97

#4A1E97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.179 H 292.0°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4A1E97
RGBrgb(74, 30, 151)
HSLhsl(262, 67%, 35%)
HSVhsv(262, 80%, 59%)
CMYKcmyk(51%, 80.1%, 0%, 40.8%)
CIE-LABlab(25.62, 47.43, -57.94)
CIE-LCHlch(25.62, 74.88, 309.30°)
OKLaboklab(38.04% 0.0672 -0.1664)
OKLCHoklch(38.04% 0.18 292)
XYZxyz(8.8726, 4.6184, 29.6961)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E97 #6B971E
analogous
#1E2E97 #4A1E97 #861E97
triadic
#4A1E97 #974A1E #1E974A
tetradic
#4A1E97 #971E2E #6B971E #1E9786
square
#4A1E97 #971E2E #6B971E #1E9786
split-complementary
#4A1E97 #97861E #2E971E
monochromatic
#180A31 #311464 #4A1E97 #6328CA #8553DD

Accessibility & contrast

On white

10.92
#4A1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E97
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E97#FFFFFF#000000##FFFFFF
##4A1E971.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#30415A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a1e97;
/* rgb */ color: rgb(74, 30, 151);
/* oklch */ color: oklch(38.0% 0.179 292.0);
Tailwind
colors: {
  custom: {
    50: '#8560b7',
    500: '#4a1e97',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e97;
$custom-light: #8560b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e97",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 261.818,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38038,
    "c": 0.1795,
    "h": 292
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#4A1E97
secondary
#98C051
accent
#EA3EAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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