#4A156F#4A156F

#4A156F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.145 H 306.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#4A156F
RGBrgb(74, 21, 111)
HSLhsl(275, 68%, 26%)
HSVhsv(275, 81%, 44%)
CMYKcmyk(33.3%, 81.1%, 0%, 56.5%)
CIE-LABlab(20.60, 40.91, -40.94)
CIE-LCHlch(20.60, 57.88, 314.98°)
OKLaboklab(33.4% 0.0867 -0.1165)
OKLCHoklch(33.4% 0.145 306.7)
XYZxyz(5.9608, 3.1399, 15.3279)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A156F #3A6F15
analogous
#1D156F #4A156F #6F1567
triadic
#4A156F #6F4A15 #156F4A
tetradic
#4A156F #6F1D15 #3A6F15 #15676F
square
#4A156F #6F1D15 #3A6F15 #15676F
split-complementary
#4A156F #676F15 #156F1D
monochromatic
#11051A #280B3C #4A156F #6C1FA2 #8F28D6

Accessibility & contrast

On white

12.90
#4A156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4A156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A156F
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A156F#FFFFFF#000000##FFFFFF
##4A156F1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#442C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a156f;
/* rgb */ color: rgb(74, 21, 111);
/* oklch */ color: oklch(33.4% 0.145 306.7);
Tailwind
colors: {
  custom: {
    50: '#815999',
    500: '#4a156f',
    950: '#000000',
  },
}
SCSS
$custom: #4a156f;
$custom-light: #815999;
$custom-dark: #000000;
JSON
{
  "hex": "#4a156f",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 275.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33399,
    "c": 0.14519,
    "h": 306.7
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#4A156F
secondary
#66A53A
accent
#EB3D84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A156F

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

Preview Lab → · Contrast checker → · Palette generator →

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