#4C146D#4C146D

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

Color values

HEX#4C146D
RGBrgb(76, 20, 109)
HSLhsl(278, 69%, 25%)
HSVhsv(278, 82%, 43%)
CMYKcmyk(30.3%, 81.7%, 0%, 57.3%)
CIE-LABlab(20.60, 41.22, -39.63)
CIE-LCHlch(20.60, 57.18, 316.13°)
OKLaboklab(33.42% 0.0911 -0.1125)
OKLCHoklch(33.42% 0.145 309)
XYZxyz(5.9904, 3.1410, 14.7557)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C146D #356D14
analogous
#20146D #4C146D #6D1461
triadic
#4C146D #6D4C14 #146D4C
tetradic
#4C146D #6D2014 #356D14 #14616D
square
#4C146D #6D2014 #356D14 #14616D
split-complementary
#4C146D #616D14 #146D20
monochromatic
#12051A #280B39 #4C146D #701DA1 #9427D4

Accessibility & contrast

On white

12.90
#4C146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C146D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C146D#FFFFFF#000000##FFFFFF
##4C146D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#472A40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c146d;
/* rgb */ color: rgb(76, 20, 109);
/* oklch */ color: oklch(33.4% 0.145 309.0);
Tailwind
colors: {
  custom: {
    50: '#825997',
    500: '#4c146d',
    950: '#000000',
  },
}
SCSS
$custom: #4c146d;
$custom-light: #825997;
$custom-dark: #000000;
JSON
{
  "hex": "#4c146d",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 277.753,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33415,
    "c": 0.14478,
    "h": 309
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#4C146D
secondary
#61A439
accent
#EC3C7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C146D

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

Preview Lab → · Contrast checker → · Palette generator →

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