#4A156B#4A156B

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

Color values

HEX#4A156B
RGBrgb(74, 21, 107)
HSLhsl(277, 67%, 25%)
HSVhsv(277, 80%, 42%)
CMYKcmyk(30.8%, 80.4%, 0%, 58%)
CIE-LABlab(20.26, 39.95, -38.90)
CIE-LCHlch(20.26, 55.75, 315.76°)
OKLaboklab(33.06% 0.0876 -0.1104)
OKLCHoklch(33.06% 0.141 308.4)
XYZxyz(5.7455, 3.0538, 14.1938)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A156B #366B15
analogous
#1F156B #4A156B #6B1561
triadic
#4A156B #6B4A15 #156B4A
tetradic
#4A156B #6B1F15 #366B15 #15616B
square
#4A156B #6B1F15 #366B15 #15616B
split-complementary
#4A156B #616B15 #156B1F
monochromatic
#12051A #270B38 #4A156B #6D1F9E #9129D1

Accessibility & contrast

On white

13.04
#4A156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4A156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A156B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A156B#FFFFFF#000000##FFFFFF
##4A156B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#452A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a156b;
/* rgb */ color: rgb(74, 21, 107);
/* oklch */ color: oklch(33.1% 0.141 308.4);
Tailwind
colors: {
  custom: {
    50: '#805996',
    500: '#4a156b',
    950: '#000000',
  },
}
SCSS
$custom: #4a156b;
$custom-light: #805996;
$custom-dark: #000000;
JSON
{
  "hex": "#4a156b",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 276.977,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33056,
    "c": 0.141,
    "h": 308.4
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#4A156B
secondary
#62A23A
accent
#EA3E80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A156B

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

Preview Lab → · Contrast checker → · Palette generator →

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