#4C146C#4C146C

#4C146C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.144 H 309.5°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#4C146C
RGBrgb(76, 20, 108)
HSLhsl(278, 69%, 25%)
HSVhsv(278, 81%, 42%)
CMYKcmyk(29.6%, 81.5%, 0%, 57.6%)
CIE-LABlab(20.52, 40.99, -39.11)
CIE-LCHlch(20.52, 56.65, 316.34°)
OKLaboklab(33.33% 0.0913 -0.111)
OKLCHoklch(33.33% 0.144 309.5)
XYZxyz(5.9369, 3.1196, 14.4738)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C146C #346C14
analogous
#20146C #4C146C #6C1460
triadic
#4C146C #6C4C14 #146C4C
tetradic
#4C146C #6C2014 #346C14 #14606C
square
#4C146C #6C2014 #346C14 #14606C
split-complementary
#4C146C #606C14 #146C20
monochromatic
#12051A #280A38 #4C146C #701EA0 #9527D3

Accessibility & contrast

On white

12.93
#4C146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C146C
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C146C#FFFFFF#000000##FFFFFF
##4C146C1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#472A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c146c;
/* rgb */ color: rgb(76, 20, 108);
/* oklch */ color: oklch(33.3% 0.144 309.5);
Tailwind
colors: {
  custom: {
    50: '#825997',
    500: '#4c146c',
    950: '#000000',
  },
}
SCSS
$custom: #4c146c;
$custom-light: #825997;
$custom-dark: #000000;
JSON
{
  "hex": "#4c146c",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 278.182,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.14375,
    "h": 309.5
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#4C146C
secondary
#5FA339
accent
#EC3C7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C146C

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

Preview Lab → · Contrast checker → · Palette generator →

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