#4C146B#4C146B

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

Color values

HEX#4C146B
RGBrgb(76, 20, 107)
HSLhsl(279, 69%, 25%)
HSVhsv(279, 81%, 42%)
CMYKcmyk(29%, 81.3%, 0%, 58%)
CIE-LABlab(20.43, 40.75, -38.59)
CIE-LCHlch(20.43, 56.13, 316.56°)
OKLaboklab(33.25% 0.0916 -0.1095)
OKLCHoklch(33.25% 0.143 309.9)
XYZxyz(5.8840, 3.0985, 14.1952)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C146B #336B14
analogous
#21146B #4C146B #6B145E
triadic
#4C146B #6B4C14 #146B4C
tetradic
#4C146B #6B2114 #336B14 #145E6B
square
#4C146B #6B2114 #336B14 #145E6B
split-complementary
#4C146B #5E6B14 #146B21
monochromatic
#12051A #270A37 #4C146B #711E9F #9527D2

Accessibility & contrast

On white

12.97
#4C146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C146B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C146B#FFFFFF#000000##FFFFFF
##4C146B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#48293F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c146b;
/* rgb */ color: rgb(76, 20, 107);
/* oklch */ color: oklch(33.2% 0.143 309.9);
Tailwind
colors: {
  custom: {
    50: '#825996',
    500: '#4c146b',
    950: '#000000',
  },
}
SCSS
$custom: #4c146b;
$custom-light: #825996;
$custom-dark: #000000;
JSON
{
  "hex": "#4c146b",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 278.621,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33246,
    "c": 0.14273,
    "h": 309.9
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#4C146B
secondary
#5EA239
accent
#EB3C7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C146B

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

Preview Lab → · Contrast checker → · Palette generator →

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