#4C1789#4C1789

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

Color values

HEX#4C1789
RGBrgb(76, 23, 137)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 54%)
CMYKcmyk(44.5%, 83.2%, 0%, 46.3%)
CIE-LABlab(23.52, 46.93, -52.69)
CIE-LCHlch(23.52, 70.56, 311.69°)
OKLaboklab(36.23% 0.0803 -0.1509)
OKLCHoklch(36.23% 0.171 298)
XYZxyz(7.8011, 3.9553, 24.0145)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1789 #548917
analogous
#171B89 #4C1789 #851789
triadic
#4C1789 #894C17 #17894C
tetradic
#4C1789 #89171B #548917 #178985
square
#4C1789 #89171B #548917 #178985
split-complementary
#4C1789 #898517 #1B8917
monochromatic
#120520 #2F0E55 #4C1789 #6920BD #883CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C1789#FFFFFF#000000##FFFFFF
##4C17891.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)
#00388C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#3C3851
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1789;
/* rgb */ color: rgb(76, 23, 137);
/* oklch */ color: oklch(36.2% 0.171 298.0);
Tailwind
colors: {
  custom: {
    50: '#855cac',
    500: '#4c1789',
    950: '#000000',
  },
}
SCSS
$custom: #4c1789;
$custom-light: #855cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1789",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 267.895,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36229,
    "c": 0.17094,
    "h": 298
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#4C1789
secondary
#82BD3F
accent
#EE3A9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1789

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

Preview Lab → · Contrast checker → · Palette generator →

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