#49157A#49157A

#49157A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.157 H 301.6°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#49157A
RGBrgb(73, 21, 122)
HSLhsl(271, 71%, 28%)
HSVhsv(271, 83%, 48%)
CMYKcmyk(40.2%, 82.8%, 0%, 52.2%)
CIE-LABlab(21.42, 43.45, -46.67)
CIE-LCHlch(21.42, 63.77, 312.95°)
OKLaboklab(34.25% 0.082 -0.1333)
OKLCHoklch(34.25% 0.157 301.6)
XYZxyz(6.5278, 3.3579, 18.7128)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#49157A #467A15
analogous
#16157A #49157A #7A1578
triadic
#49157A #7A4915 #157A49
tetradic
#49157A #7A1615 #467A15 #15787A
square
#49157A #7A1615 #467A15 #15787A
split-complementary
#49157A #787A15 #157A16
monochromatic
#10041A #2A0C46 #49157A #681EAE #872EDB

Accessibility & contrast

On white

12.56
#49157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#49157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #49157A
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##49157A#FFFFFF#000000##FFFFFF
##49157A1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#3E3148
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #49157a;
/* rgb */ color: rgb(73, 21, 122);
/* oklch */ color: oklch(34.2% 0.157 301.6);
Tailwind
colors: {
  custom: {
    50: '#815aa1',
    500: '#49157a',
    950: '#000000',
  },
}
SCSS
$custom: #49157a;
$custom-light: #815aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#49157a",
  "rgb": {
    "r": 73,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 270.891,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34249,
    "c": 0.15654,
    "h": 301.6
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#49157A
secondary
#74AF3B
accent
#ED3A91
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #49157A

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

Preview Lab → · Contrast checker → · Palette generator →

#49157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva