#4A146E#4A146E

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

Color values

HEX#4A146E
RGBrgb(74, 20, 110)
HSLhsl(276, 69%, 25%)
HSVhsv(276, 82%, 43%)
CMYKcmyk(32.7%, 81.8%, 0%, 56.9%)
CIE-LABlab(20.37, 41.08, -40.66)
CIE-LCHlch(20.37, 57.80, 315.29°)
OKLaboklab(33.21% 0.0879 -0.1156)
OKLCHoklch(33.21% 0.145 307.2)
XYZxyz(5.8881, 3.0820, 15.0335)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A146E #386E14
analogous
#1D146E #4A146E #6E1465
triadic
#4A146E #6E4A14 #146E4A
tetradic
#4A146E #6E1D14 #386E14 #14656E
square
#4A146E #6E1D14 #386E14 #14656E
split-complementary
#4A146E #656E14 #146E1D
monochromatic
#11051A #270B3A #4A146E #6D1DA2 #9027D6

Accessibility & contrast

On white

12.99
#4A146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A146E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A146E#FFFFFF#000000##FFFFFF
##4A146E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#442B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a146e;
/* rgb */ color: rgb(74, 20, 110);
/* oklch */ color: oklch(33.2% 0.145 307.2);
Tailwind
colors: {
  custom: {
    50: '#815998',
    500: '#4a146e',
    950: '#000000',
  },
}
SCSS
$custom: #4a146e;
$custom-light: #815998;
$custom-dark: #000000;
JSON
{
  "hex": "#4a146e",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 276,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33214,
    "c": 0.14522,
    "h": 307.2
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#4A146E
secondary
#64A539
accent
#EC3C82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A146E

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

Preview Lab → · Contrast checker → · Palette generator →

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