#4A156E#4A156E

#4A156E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.144 H 307.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#4A156E
RGBrgb(74, 21, 110)
HSLhsl(276, 68%, 26%)
HSVhsv(276, 81%, 43%)
CMYKcmyk(32.7%, 80.9%, 0%, 56.9%)
CIE-LABlab(20.51, 40.67, -40.44)
CIE-LCHlch(20.51, 57.35, 315.17°)
OKLaboklab(33.31% 0.0869 -0.115)
OKLCHoklch(33.31% 0.144 307.1)
XYZxyz(5.9061, 3.1180, 15.0395)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A156E #396E15
analogous
#1D156E #4A156E #6E1565
triadic
#4A156E #6E4A15 #156E4A
tetradic
#4A156E #6E1D15 #396E15 #15656E
square
#4A156E #6E1D15 #396E15 #15656E
split-complementary
#4A156E #656E15 #156E1D
monochromatic
#11051A #270B3B #4A156E #6D1FA1 #8F29D5

Accessibility & contrast

On white

12.93
#4A156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A156E
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A156E#FFFFFF#000000##FFFFFF
##4A156E1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#442B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a156e;
/* rgb */ color: rgb(74, 21, 110);
/* oklch */ color: oklch(33.3% 0.144 307.1);
Tailwind
colors: {
  custom: {
    50: '#815998',
    500: '#4a156e',
    950: '#000000',
  },
}
SCSS
$custom: #4a156e;
$custom-light: #815998;
$custom-dark: #000000;
JSON
{
  "hex": "#4a156e",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 275.73,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33313,
    "c": 0.14414,
    "h": 307.1
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#4A156E
secondary
#65A43A
accent
#EB3D83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A156E

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

Preview Lab → · Contrast checker → · Palette generator →

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