#4A1E87#4A1E87

#4A1E87 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.162 H 296.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4A1E87
RGBrgb(74, 30, 135)
HSLhsl(265, 64%, 32%)
HSVhsv(265, 78%, 53%)
CMYKcmyk(45.2%, 77.8%, 0%, 47.1%)
CIE-LABlab(24.11, 43.10, -50.49)
CIE-LCHlch(24.11, 66.39, 310.48°)
OKLaboklab(36.52% 0.072 -0.1446)
OKLCHoklch(36.52% 0.162 296.5)
XYZxyz(7.6603, 4.1335, 23.3112)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E87 #5B871E
analogous
#1E2787 #4A1E87 #7F1E87
triadic
#4A1E87 #874A1E #1E874A
tetradic
#4A1E87 #871E27 #5B871E #1E877F
square
#4A1E87 #871E27 #5B871E #1E877F
split-complementary
#4A1E87 #877F1E #27871E
monochromatic
#130823 #2F1355 #4A1E87 #6529B9 #8449D7

Accessibility & contrast

On white

11.50
#4A1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E87
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E87#FFFFFF#000000##FFFFFF
##4A1E871.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#3A3A51
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1e87;
/* rgb */ color: rgb(74, 30, 135);
/* oklch */ color: oklch(36.5% 0.162 296.5);
Tailwind
colors: {
  custom: {
    50: '#835fab',
    500: '#4a1e87',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e87;
$custom-light: #835fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e87",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 265.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36521,
    "c": 0.16154,
    "h": 296.5
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#4A1E87
secondary
#8AB948
accent
#E741A1
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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