#4C146E#4C146E

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

Color values

HEX#4C146E
RGBrgb(76, 20, 110)
HSLhsl(277, 69%, 25%)
HSVhsv(277, 82%, 43%)
CMYKcmyk(30.9%, 81.8%, 0%, 56.9%)
CIE-LABlab(20.68, 41.46, -40.14)
CIE-LCHlch(20.68, 57.70, 315.92°)
OKLaboklab(33.5% 0.0909 -0.114)
OKLCHoklch(33.5% 0.146 308.5)
XYZxyz(6.0445, 3.1627, 15.0409)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C146E #366E14
analogous
#1F146E #4C146E #6E1463
triadic
#4C146E #6E4C14 #146E4C
tetradic
#4C146E #6E1F14 #366E14 #14636E
square
#4C146E #6E1F14 #366E14 #14636E
split-complementary
#4C146E #636E14 #146E1F
monochromatic
#12051A #280B3A #4C146E #701DA2 #9427D6

Accessibility & contrast

On white

12.86
#4C146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C146E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C146E#FFFFFF#000000##FFFFFF
##4C146E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#472B41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c146e;
/* rgb */ color: rgb(76, 20, 110);
/* oklch */ color: oklch(33.5% 0.146 308.5);
Tailwind
colors: {
  custom: {
    50: '#825998',
    500: '#4c146e',
    950: '#000000',
  },
}
SCSS
$custom: #4c146e;
$custom-light: #825998;
$custom-dark: #000000;
JSON
{
  "hex": "#4c146e",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 277.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.335,
    "c": 0.14579,
    "h": 308.5
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#4C146E
secondary
#62A539
accent
#EC3C7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C146E

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

Preview Lab → · Contrast checker → · Palette generator →

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