#4A157B#4A157B

#4A157B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.158 H 301.9°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4A157B
RGBrgb(74, 21, 123)
HSLhsl(271, 71%, 28%)
HSVhsv(271, 83%, 48%)
CMYKcmyk(39.8%, 82.9%, 0%, 51.8%)
CIE-LABlab(21.66, 43.87, -46.92)
CIE-LCHlch(21.66, 64.23, 313.08°)
OKLaboklab(34.47% 0.0833 -0.134)
OKLCHoklch(34.47% 0.158 301.9)
XYZxyz(6.6665, 3.4222, 19.0444)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A157B #467B15
analogous
#17157B #4A157B #7B1579
triadic
#4A157B #7B4A15 #157B4A
tetradic
#4A157B #7B1715 #467B15 #15797B
square
#4A157B #7B1715 #467B15 #15797B
split-complementary
#4A157B #797B15 #157B17
monochromatic
#10041A #2B0C47 #4A157B #691EAF #892FDB

Accessibility & contrast

On white

12.47
#4A157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A157B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A157B#FFFFFF#000000##FFFFFF
##4A157B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#3F3148
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a157b;
/* rgb */ color: rgb(74, 21, 123);
/* oklch */ color: oklch(34.5% 0.158 301.9);
Tailwind
colors: {
  custom: {
    50: '#825aa2',
    500: '#4a157b',
    950: '#000000',
  },
}
SCSS
$custom: #4a157b;
$custom-light: #825aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a157b",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 271.176,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34474,
    "c": 0.15778,
    "h": 301.9
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#4A157B
secondary
#74B03B
accent
#EE3A90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A157B

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

Preview Lab → · Contrast checker → · Palette generator →

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