#4A157A#4A157A

#4A157A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.157 H 302.2°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4A157A
RGBrgb(74, 21, 122)
HSLhsl(271, 71%, 28%)
HSVhsv(271, 83%, 48%)
CMYKcmyk(39.3%, 82.8%, 0%, 52.2%)
CIE-LABlab(21.57, 43.62, -46.43)
CIE-LCHlch(21.57, 63.70, 313.21°)
OKLaboklab(34.38% 0.0836 -0.1326)
OKLCHoklch(34.38% 0.157 302.2)
XYZxyz(6.6042, 3.3973, 18.7164)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A157A #457A15
analogous
#17157A #4A157A #7A1577
triadic
#4A157A #7A4A15 #157A4A
tetradic
#4A157A #7A1715 #457A15 #15777A
square
#4A157A #7A1715 #457A15 #15777A
split-complementary
#4A157A #777A15 #157A17
monochromatic
#10041A #2A0C46 #4A157A #6A1EAE #892EDB

Accessibility & contrast

On white

12.50
#4A157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4A157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A157A
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A157A#FFFFFF#000000##FFFFFF
##4A157A1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#403148
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a157a;
/* rgb */ color: rgb(74, 21, 122);
/* oklch */ color: oklch(34.4% 0.157 302.2);
Tailwind
colors: {
  custom: {
    50: '#825aa1',
    500: '#4a157a',
    950: '#000000',
  },
}
SCSS
$custom: #4a157a;
$custom-light: #825aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a157a",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 271.485,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34382,
    "c": 0.15673,
    "h": 302.2
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#4A157A
secondary
#73AF3B
accent
#ED3A8F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A157A

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

Preview Lab → · Contrast checker → · Palette generator →

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