#4C1687#4C1687

#4C1687 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.170 H 298.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4C1687
RGBrgb(76, 22, 135)
HSLhsl(269, 72%, 31%)
HSVhsv(269, 84%, 53%)
CMYKcmyk(43.7%, 83.7%, 0%, 47.1%)
CIE-LABlab(23.20, 46.81, -51.97)
CIE-LCHlch(23.20, 69.94, 312.01°)
OKLaboklab(35.95% 0.0817 -0.1488)
OKLCHoklch(35.95% 0.17 298.8)
XYZxyz(7.6394, 3.8595, 23.2594)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1687 #518716
analogous
#161887 #4C1687 #841687
triadic
#4C1687 #874C16 #16874C
tetradic
#4C1687 #871618 #518716 #168784
square
#4C1687 #871618 #518716 #168784
split-complementary
#4C1687 #878416 #188716
monochromatic
#11051E #2E0D52 #4C1687 #6A1FBC #8839DF

Accessibility & contrast

On white

11.85
#4C1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1687
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1687#FFFFFF#000000##FFFFFF
##4C16871.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#3D3750
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1687;
/* rgb */ color: rgb(76, 22, 135);
/* oklch */ color: oklch(35.9% 0.170 298.8);
Tailwind
colors: {
  custom: {
    50: '#855bab',
    500: '#4c1687',
    950: '#000000',
  },
}
SCSS
$custom: #4c1687;
$custom-light: #855bab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1687",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 268.673,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35948,
    "c": 0.16973,
    "h": 298.8
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#4C1687
secondary
#7FBB3E
accent
#EF3998
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1687

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

Preview Lab → · Contrast checker → · Palette generator →

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