#4C1986#4C1986

#4C1986 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.166 H 298.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4C1986
RGBrgb(76, 25, 134)
HSLhsl(268, 69%, 31%)
HSVhsv(268, 81%, 53%)
CMYKcmyk(43.3%, 81.3%, 0%, 47.5%)
CIE-LABlab(23.52, 45.37, -50.83)
CIE-LCHlch(23.52, 68.13, 311.75°)
OKLaboklab(36.14% 0.0797 -0.1455)
OKLCHoklch(36.14% 0.166 298.7)
XYZxyz(7.6301, 3.9529, 22.9106)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1986 #538619
analogous
#191D86 #4C1986 #821986
triadic
#4C1986 #864C19 #19864C
tetradic
#4C1986 #86191D #538619 #198682
square
#4C1986 #86191D #538619 #198682
split-complementary
#4C1986 #868219 #1D8619
monochromatic
#11061F #2F0F52 #4C1986 #6923BA #883EDB

Accessibility & contrast

On white

11.73
#4C1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1986
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1986#FFFFFF#000000##FFFFFF
##4C19861.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#3D3750
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1986;
/* rgb */ color: rgb(76, 25, 134);
/* oklch */ color: oklch(36.1% 0.166 298.7);
Tailwind
colors: {
  custom: {
    50: '#845daa',
    500: '#4c1986',
    950: '#000000',
  },
}
SCSS
$custom: #4c1986;
$custom-light: #845daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1986",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 268.073,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36137,
    "c": 0.16587,
    "h": 298.7
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#4C1986
secondary
#81BA41
accent
#EB3C9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1986

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

Preview Lab → · Contrast checker → · Palette generator →

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