#4A156C#4A156C

#4A156C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.142 H 308.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#4A156C
RGBrgb(74, 21, 108)
HSLhsl(277, 67%, 25%)
HSVhsv(277, 81%, 42%)
CMYKcmyk(31.5%, 80.6%, 0%, 57.6%)
CIE-LABlab(20.34, 40.19, -39.41)
CIE-LCHlch(20.34, 56.28, 315.56°)
OKLaboklab(33.14% 0.0874 -0.112)
OKLCHoklch(33.14% 0.142 308)
XYZxyz(5.7984, 3.0750, 14.4725)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A156C #376C15
analogous
#1F156C #4A156C #6C1562
triadic
#4A156C #6C4A15 #156C4A
tetradic
#4A156C #6C1F15 #376C15 #15626C
square
#4A156C #6C1F15 #376C15 #15626C
split-complementary
#4A156C #626C15 #156C1F
monochromatic
#12051A #270B39 #4A156C #6D1F9F #9029D2

Accessibility & contrast

On white

13.00
#4A156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A156C
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A156C#FFFFFF#000000##FFFFFF
##4A156C1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#442B40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a156c;
/* rgb */ color: rgb(74, 21, 108);
/* oklch */ color: oklch(33.1% 0.142 308.0);
Tailwind
colors: {
  custom: {
    50: '#815997',
    500: '#4a156c',
    950: '#000000',
  },
}
SCSS
$custom: #4a156c;
$custom-light: #815997;
$custom-dark: #000000;
JSON
{
  "hex": "#4a156c",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 276.552,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33141,
    "c": 0.14205,
    "h": 308
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#4A156C
secondary
#63A33A
accent
#EA3D81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A156C

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

Preview Lab → · Contrast checker → · Palette generator →

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