#4A157D#4A157D

#4A157D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.160 H 301.1°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#4A157D
RGBrgb(74, 21, 125)
HSLhsl(271, 71%, 29%)
HSVhsv(271, 83%, 49%)
CMYKcmyk(40.8%, 83.2%, 0%, 51%)
CIE-LABlab(21.85, 44.37, -47.89)
CIE-LCHlch(21.85, 65.28, 312.82°)
OKLaboklab(34.66% 0.0826 -0.1369)
OKLCHoklch(34.66% 0.16 301.1)
XYZxyz(6.7930, 3.4728, 19.7105)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A157D #487D15
analogous
#16157D #4A157D #7D157C
triadic
#4A157D #7D4A15 #157D4A
tetradic
#4A157D #7D1615 #487D15 #157C7D
square
#4A157D #7D1615 #487D15 #157C7D
split-complementary
#4A157D #7C7D15 #157D16
monochromatic
#10041A #2B0C49 #4A157D #691EB1 #8830DC

Accessibility & contrast

On white

12.39
#4A157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4A157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A157D
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A157D#FFFFFF#000000##FFFFFF
##4A157D1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#3E324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a157d;
/* rgb */ color: rgb(74, 21, 125);
/* oklch */ color: oklch(34.7% 0.160 301.1);
Tailwind
colors: {
  custom: {
    50: '#825aa4',
    500: '#4a157d',
    950: '#000000',
  },
}
SCSS
$custom: #4a157d;
$custom-light: #825aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a157d",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 270.577,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34659,
    "c": 0.15987,
    "h": 301.1
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#4A157D
secondary
#76B23C
accent
#EE3A92
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A157D

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

Preview Lab → · Contrast checker → · Palette generator →

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