#4A1E71#4A1E71

#4A1E71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.136 H 304.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4A1E71
RGBrgb(74, 30, 113)
HSLhsl(272, 58%, 28%)
HSVhsv(272, 73%, 44%)
CMYKcmyk(34.5%, 73.5%, 0%, 55.7%)
CIE-LABlab(22.22, 37.27, -39.60)
CIE-LCHlch(22.22, 54.38, 313.26°)
OKLaboklab(34.6% 0.077 -0.1126)
OKLCHoklch(34.6% 0.136 304.4)
XYZxyz(6.2683, 3.5767, 15.9797)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E71 #45711E
analogous
#201E71 #4A1E71 #711E6E
triadic
#4A1E71 #714A1E #1E714A
tetradic
#4A1E71 #71201E #45711E #1E6E71
square
#4A1E71 #71201E #45711E #1E6E71
split-complementary
#4A1E71 #6E711E #1E7120
monochromatic
#100618 #2A1141 #4A1E71 #6A2BA1 #893ECC

Accessibility & contrast

On white

12.24
#4A1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E71
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E71#FFFFFF#000000##FFFFFF
##4A1E711.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#433145
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1e71;
/* rgb */ color: rgb(74, 30, 113);
/* oklch */ color: oklch(34.6% 0.136 304.4);
Tailwind
colors: {
  custom: {
    50: '#805e9a',
    500: '#4a1e71',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e71;
$custom-light: #805e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e71",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 271.807,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34599,
    "c": 0.13637,
    "h": 304.4
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#4A1E71
secondary
#73A546
accent
#E1478F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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