#4A1D64#4A1D64

#4A1D64 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.123 H 310.5°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4A1D64
RGBrgb(74, 29, 100)
HSLhsl(278, 55%, 25%)
HSVhsv(278, 71%, 39%)
CMYKcmyk(26%, 71%, 0%, 60.8%)
CIE-LABlab(21.04, 34.49, -33.06)
CIE-LCHlch(21.04, 47.78, 316.22°)
OKLaboklab(33.44% 0.0799 -0.0934)
OKLCHoklch(33.44% 0.123 310.5)
XYZxyz(5.5632, 3.2548, 12.3893)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D64 #37641D
analogous
#261D64 #4A1D64 #641D5A
triadic
#4A1D64 #644A1D #1D644A
tetradic
#4A1D64 #64261D #37641D #1D5A64
square
#4A1D64 #64261D #37641D #1D5A64
split-complementary
#4A1D64 #5A641D #1D6426
monochromatic
#120718 #270F35 #4A1D64 #6D2B93 #9039C3

Accessibility & contrast

On white

12.72
#4A1D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4A1D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D64
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D64#FFFFFF#000000##FFFFFF
##4A1D641.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#133362
Tritanopia (blue-blind)
#472C3E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1d64;
/* rgb */ color: rgb(74, 29, 100);
/* oklch */ color: oklch(33.4% 0.123 310.5);
Tailwind
colors: {
  custom: {
    50: '#7f5d91',
    500: '#4a1d64',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d64;
$custom-light: #7f5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d64",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 278.028,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33437,
    "c": 0.12285,
    "h": 310.5
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#4A1D64
secondary
#639944
accent
#DE4980
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040D
muted
#7C797D

Preview Lab

Preview with #4A1D64

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

Preview Lab → · Contrast checker → · Palette generator →

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