#4C1987#4C1987

#4C1987 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.167 H 298.4°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4C1987
RGBrgb(76, 25, 135)
HSLhsl(268, 69%, 31%)
HSVhsv(268, 81%, 53%)
CMYKcmyk(43.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(23.61, 45.63, -51.30)
CIE-LCHlch(23.61, 68.66, 311.65°)
OKLaboklab(36.23% 0.0794 -0.1468)
OKLCHoklch(36.23% 0.167 298.4)
XYZxyz(7.7002, 3.9809, 23.2797)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1987 #548719
analogous
#191D87 #4C1987 #831987
triadic
#4C1987 #874C19 #19874C
tetradic
#4C1987 #87191D #548719 #198783
square
#4C1987 #87191D #548719 #198783
split-complementary
#4C1987 #878319 #1D8719
monochromatic
#120620 #2F0F53 #4C1987 #6923BB #883FDB

Accessibility & contrast

On white

11.69
#4C1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4C1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1987
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1987#FFFFFF#000000##FFFFFF
##4C19871.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#3D3850
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1987;
/* rgb */ color: rgb(76, 25, 135);
/* oklch */ color: oklch(36.2% 0.167 298.4);
Tailwind
colors: {
  custom: {
    50: '#855dab',
    500: '#4c1987',
    950: '#000000',
  },
}
SCSS
$custom: #4c1987;
$custom-light: #855dab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1987",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 267.818,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36231,
    "c": 0.16694,
    "h": 298.4
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#4C1987
secondary
#82BA41
accent
#EC3C9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1987

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

Preview Lab → · Contrast checker → · Palette generator →

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