#4A1D87#4A1D87

#4A1D87 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.163 H 296.6°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4A1D87
RGBrgb(74, 29, 135)
HSLhsl(265, 65%, 32%)
HSVhsv(265, 79%, 53%)
CMYKcmyk(45.2%, 78.5%, 0%, 47.1%)
CIE-LABlab(23.95, 43.56, -50.76)
CIE-LCHlch(23.95, 66.89, 310.64°)
OKLaboklab(36.41% 0.0729 -0.1454)
OKLCHoklch(36.41% 0.163 296.6)
XYZxyz(7.6354, 4.0837, 23.3029)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D87 #5A871D
analogous
#1D2587 #4A1D87 #7F1D87
triadic
#4A1D87 #874A1D #1D874A
tetradic
#4A1D87 #871D25 #5A871D #1D877F
square
#4A1D87 #871D25 #5A871D #1D877F
split-complementary
#4A1D87 #877F1D #25871D
monochromatic
#130722 #2E1255 #4A1D87 #6628B9 #8447D7

Accessibility & contrast

On white

11.56
#4A1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D87
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D87#FFFFFF#000000##FFFFFF
##4A1D871.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1d87;
/* rgb */ color: rgb(74, 29, 135);
/* oklch */ color: oklch(36.4% 0.163 296.6);
Tailwind
colors: {
  custom: {
    50: '#835eab',
    500: '#4a1d87',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d87;
$custom-light: #835eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d87",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 265.472,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36408,
    "c": 0.16262,
    "h": 296.6
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#4A1D87
secondary
#89B946
accent
#E840A1
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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