#4A157C#4A157C

#4A157C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.159 H 301.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4A157C
RGBrgb(74, 21, 124)
HSLhsl(271, 71%, 28%)
HSVhsv(271, 83%, 49%)
CMYKcmyk(40.3%, 83.1%, 0%, 51.4%)
CIE-LABlab(21.75, 44.12, -47.40)
CIE-LCHlch(21.75, 64.76, 312.94°)
OKLaboklab(34.57% 0.0829 -0.1354)
OKLCHoklch(34.57% 0.159 301.5)
XYZxyz(6.7294, 3.4474, 19.3758)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A157C #477C15
analogous
#17157C #4A157C #7C157A
triadic
#4A157C #7C4A15 #157C4A
tetradic
#4A157C #7C1715 #477C15 #157A7C
square
#4A157C #7C1715 #477C15 #157A7C
split-complementary
#4A157C #7A7C15 #157C17
monochromatic
#10041A #2B0C48 #4A157C #691EB0 #8830DC

Accessibility & contrast

On white

12.43
#4A157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A157C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A157C#FFFFFF#000000##FFFFFF
##4A157C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#3F3249
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a157c;
/* rgb */ color: rgb(74, 21, 124);
/* oklch */ color: oklch(34.6% 0.159 301.5);
Tailwind
colors: {
  custom: {
    50: '#825aa3',
    500: '#4a157c',
    950: '#000000',
  },
}
SCSS
$custom: #4a157c;
$custom-light: #825aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a157c",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 270.874,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.15883,
    "h": 301.5
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#4A157C
secondary
#75B13C
accent
#EE3A91
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A157C

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

Preview Lab → · Contrast checker → · Palette generator →

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