#4C1686#4C1686

#4C1686 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.169 H 299.1°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#4C1686
RGBrgb(76, 22, 134)
HSLhsl(269, 72%, 31%)
HSVhsv(269, 84%, 53%)
CMYKcmyk(43.3%, 83.6%, 0%, 47.5%)
CIE-LABlab(23.11, 46.56, -51.50)
CIE-LCHlch(23.11, 69.42, 312.12°)
OKLaboklab(35.85% 0.082 -0.1474)
OKLCHoklch(35.85% 0.169 299.1)
XYZxyz(7.5694, 3.8314, 22.8904)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1686 #508616
analogous
#161886 #4C1686 #841686
triadic
#4C1686 #864C16 #16864C
tetradic
#4C1686 #861618 #508616 #168684
square
#4C1686 #861618 #508616 #168684
split-complementary
#4C1686 #868416 #188616
monochromatic
#10051D #2E0D51 #4C1686 #6A1FBB #8838DE

Accessibility & contrast

On white

11.89
#4C1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1686
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1686#FFFFFF#000000##FFFFFF
##4C16861.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#3E364F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1686;
/* rgb */ color: rgb(76, 22, 134);
/* oklch */ color: oklch(35.9% 0.169 299.1);
Tailwind
colors: {
  custom: {
    50: '#855baa',
    500: '#4c1686',
    950: '#000000',
  },
}
SCSS
$custom: #4c1686;
$custom-light: #855baa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1686",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 268.929,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35853,
    "c": 0.16869,
    "h": 299.1
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

primary
#4C1686
secondary
#7EBA3E
accent
#EF3997
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1686

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

Preview Lab → · Contrast checker → · Palette generator →

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