#4A116C#4A116C

#4A116C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.146 H 308.5°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#4A116C
RGBrgb(74, 17, 108)
HSLhsl(278, 73%, 25%)
HSVhsv(278, 84%, 42%)
CMYKcmyk(31.5%, 84.3%, 0%, 57.6%)
CIE-LABlab(19.80, 41.75, -40.29)
CIE-LCHlch(19.80, 58.02, 316.02°)
OKLaboklab(32.76% 0.091 -0.1145)
OKLCHoklch(32.76% 0.146 308.5)
XYZxyz(5.7307, 2.9396, 14.4499)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A116C #336C11
analogous
#1C116C #4A116C #6C1161
triadic
#4A116C #6C4A11 #116C4A
tetradic
#4A116C #6C1C11 #336C11 #11616C
square
#4A116C #6C1C11 #336C11 #11616C
split-complementary
#4A116C #616C11 #116C1C
monochromatic
#12041A #260937 #4A116C #6E19A1 #9222D6

Accessibility & contrast

On white

13.23
#4A116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4A116C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A116C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A116C#FFFFFF#000000##FFFFFF
##4A116C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#00306A
Tritanopia (blue-blind)
#45293F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4a116c;
/* rgb */ color: rgb(74, 17, 108);
/* oklch */ color: oklch(32.8% 0.146 308.5);
Tailwind
colors: {
  custom: {
    50: '#815797',
    500: '#4a116c',
    950: '#000000',
  },
}
SCSS
$custom: #4a116c;
$custom-light: #815797;
$custom-dark: #000000;
JSON
{
  "hex": "#4a116c",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 277.582,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.14628,
    "h": 308.5
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#4A116C
secondary
#5EA435
accent
#EF387D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4A116C

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

Preview Lab → · Contrast checker → · Palette generator →

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