#4A1158#4A1158

#4A1158 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.1% C 0.126 H 318.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#4A1158
RGBrgb(74, 17, 88)
HSLhsl(288, 68%, 21%)
HSVhsv(288, 81%, 35%)
CMYKcmyk(15.9%, 80.7%, 0%, 65.5%)
CIE-LABlab(18.19, 37.24, -29.66)
CIE-LCHlch(18.19, 47.61, 321.46°)
OKLaboklab(31.13% 0.0951 -0.0833)
OKLCHoklch(31.13% 0.126 318.8)
XYZxyz(4.7857, 2.5616, 9.4730)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1158 #1F5811
analogous
#261158 #4A1158 #581142
triadic
#4A1158 #584A11 #11584A
tetradic
#4A1158 #582611 #1F5811 #114258
square
#4A1158 #582611 #1F5811 #114258
split-complementary
#4A1158 #425811 #115826
monochromatic
#16051A #1F0725 #4A1158 #751B8B #A025BF

Accessibility & contrast

On white

13.89
#4A1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4A1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1158
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1158#FFFFFF#000000##FFFFFF
##4A11581.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#152E56
Tritanopia (blue-blind)
#4A2034
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a1158;
/* rgb */ color: rgb(74, 17, 88);
/* oklch */ color: oklch(31.1% 0.126 318.8);
Tailwind
colors: {
  custom: {
    50: '#7f5687',
    500: '#4a1158',
    950: '#000000',
  },
}
SCSS
$custom: #4a1158;
$custom-light: #7f5687;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1158",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 288.169,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31127,
    "c": 0.12642,
    "h": 318.8
  },
  "luminance": 0.02561
}

Semantic roles & 50–950 ramp

primary
#4A1158
secondary
#469134
accent
#EA3D5F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1158

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

Preview Lab → · Contrast checker → · Palette generator →

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