#4A1D85#4A1D85

#4A1D85 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.160 H 297.3°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4A1D85
RGBrgb(74, 29, 133)
HSLhsl(266, 64%, 32%)
HSVhsv(266, 78%, 52%)
CMYKcmyk(44.4%, 78.2%, 0%, 47.8%)
CIE-LABlab(23.76, 43.03, -49.80)
CIE-LCHlch(23.76, 65.81, 310.82°)
OKLaboklab(36.22% 0.0735 -0.1426)
OKLCHoklch(36.22% 0.16 297.3)
XYZxyz(7.4959, 4.0279, 22.5683)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D85 #58851D
analogous
#1D2485 #4A1D85 #7E1D85
triadic
#4A1D85 #854A1D #1D854A
tetradic
#4A1D85 #851D24 #58851D #1D857E
square
#4A1D85 #851D24 #58851D #1D857E
split-complementary
#4A1D85 #857E1D #24851D
monochromatic
#120721 #2E1253 #4A1D85 #6628B7 #8446D7

Accessibility & contrast

On white

11.63
#4A1D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A1D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D85
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D85#FFFFFF#000000##FFFFFF
##4A1D851.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#3B3950
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1d85;
/* rgb */ color: rgb(74, 29, 133);
/* oklch */ color: oklch(36.2% 0.160 297.3);
Tailwind
colors: {
  custom: {
    50: '#835ea9',
    500: '#4a1d85',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d85;
$custom-light: #835ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d85",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 265.962,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.16037,
    "h": 297.3
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#4A1D85
secondary
#87B846
accent
#E7419F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1D85

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

Preview Lab → · Contrast checker → · Palette generator →

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