#4A157E#4A157E

#4A157E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.161 H 300.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4A157E
RGBrgb(74, 21, 126)
HSLhsl(270, 71%, 29%)
HSVhsv(270, 83%, 49%)
CMYKcmyk(41.3%, 83.3%, 0%, 50.6%)
CIE-LABlab(21.94, 44.62, -48.37)
CIE-LCHlch(21.94, 65.81, 312.69°)
OKLaboklab(34.75% 0.0823 -0.1383)
OKLCHoklch(34.75% 0.161 300.8)
XYZxyz(6.8572, 3.4985, 20.0486)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A157E #497E15
analogous
#16157E #4A157E #7E157E
triadic
#4A157E #7E4A15 #157E4A
tetradic
#4A157E #7E1615 #497E15 #157E7E
square
#4A157E #7E1615 #497E15 #157E7E
split-complementary
#4A157E #7E7E15 #157E16
monochromatic
#0F041A #2B0C4A #4A157E #691EB2 #8831DD

Accessibility & contrast

On white

12.35
#4A157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A157E
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A157E#FFFFFF#000000##FFFFFF
##4A157E1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#3E324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a157e;
/* rgb */ color: rgb(74, 21, 126);
/* oklch */ color: oklch(34.8% 0.161 300.8);
Tailwind
colors: {
  custom: {
    50: '#825aa4',
    500: '#4a157e',
    950: '#000000',
  },
}
SCSS
$custom: #4a157e;
$custom-light: #825aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a157e",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 270.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.16091,
    "h": 300.8
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#4A157E
secondary
#77B33C
accent
#EE3A93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A157E

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

Preview Lab → · Contrast checker → · Palette generator →

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