#4A1458#4A1458

#4A1458 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.4% C 0.123 H 318.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#4A1458
RGBrgb(74, 20, 88)
HSLhsl(288, 63%, 21%)
HSVhsv(288, 77%, 35%)
CMYKcmyk(15.9%, 77.3%, 0%, 65.5%)
CIE-LABlab(18.63, 35.99, -28.96)
CIE-LCHlch(18.63, 46.20, 321.18°)
OKLaboklab(31.44% 0.0918 -0.0813)
OKLCHoklch(31.44% 0.123 318.5)
XYZxyz(4.8354, 2.6610, 9.4895)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1458 #225814
analogous
#281458 #4A1458 #581444
triadic
#4A1458 #584A14 #14584A
tetradic
#4A1458 #582814 #225814 #144458
square
#4A1458 #582814 #225814 #144458
split-complementary
#4A1458 #445814 #145828
monochromatic
#150619 #200926 #4A1458 #741F8A #9E2BBC

Accessibility & contrast

On white

13.71
#4A1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4A1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1458
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1458#FFFFFF#000000##FFFFFF
##4A14581.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#182F56
Tritanopia (blue-blind)
#4A2134
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a1458;
/* rgb */ color: rgb(74, 20, 88);
/* oklch */ color: oklch(31.4% 0.123 318.5);
Tailwind
colors: {
  custom: {
    50: '#7f5787',
    500: '#4a1458',
    950: '#000000',
  },
}
SCSS
$custom: #4a1458;
$custom-light: #7f5787;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1458",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 287.647,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31437,
    "c": 0.12264,
    "h": 318.5
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#4A1458
secondary
#4A9038
accent
#E64264
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1458

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

Preview Lab → · Contrast checker → · Palette generator →

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