#4A1157#4A1157

#4A1157 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.1% C 0.125 H 319.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#4A1157
RGBrgb(74, 17, 87)
HSLhsl(289, 67%, 20%)
HSVhsv(289, 80%, 34%)
CMYKcmyk(14.9%, 80.5%, 0%, 65.9%)
CIE-LABlab(18.12, 37.03, -29.11)
CIE-LCHlch(18.12, 47.10, 321.83°)
OKLaboklab(31.05% 0.0952 -0.0817)
OKLCHoklch(31.05% 0.125 319.4)
XYZxyz(4.7446, 2.5451, 9.2563)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1157 #1E5711
analogous
#271157 #4A1157 #571141
triadic
#4A1157 #574A11 #11574A
tetradic
#4A1157 #572711 #1E5711 #114157
square
#4A1157 #572711 #1E5711 #114157
split-complementary
#4A1157 #415711 #115727
monochromatic
#16051A #1E0724 #4A1157 #761B8A #A125BD

Accessibility & contrast

On white

13.92
#4A1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1157
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1157#FFFFFF#000000##FFFFFF
##4A11571.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#162E55
Tritanopia (blue-blind)
#4A1F33
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a1157;
/* rgb */ color: rgb(74, 17, 87);
/* oklch */ color: oklch(31.1% 0.125 319.4);
Tailwind
colors: {
  custom: {
    50: '#7f5687',
    500: '#4a1157',
    950: '#000000',
  },
}
SCSS
$custom: #4a1157;
$custom-light: #7f5687;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1157",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 288.857,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31051,
    "c": 0.12545,
    "h": 319.4
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#4A1157
secondary
#459034
accent
#EA3E5E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1157

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

Preview Lab → · Contrast checker → · Palette generator →

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