#4C1889#4C1889

#4C1889 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.170 H 297.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4C1889
RGBrgb(76, 24, 137)
HSLhsl(268, 70%, 32%)
HSVhsv(268, 82%, 54%)
CMYKcmyk(44.5%, 82.5%, 0%, 46.3%)
CIE-LABlab(23.66, 46.54, -52.47)
CIE-LCHlch(23.66, 70.14, 311.57°)
OKLaboklab(36.32% 0.0795 -0.1503)
OKLCHoklch(36.32% 0.17 297.9)
XYZxyz(7.8213, 3.9958, 24.0212)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1889 #558918
analogous
#181C89 #4C1889 #851889
triadic
#4C1889 #894C18 #18894C
tetradic
#4C1889 #89181C #558918 #188985
square
#4C1889 #89181C #558918 #188985
split-complementary
#4C1889 #898518 #1C8918
monochromatic
#120621 #2F0F55 #4C1889 #6921BD #873EDD

Accessibility & contrast

On white

11.67
#4C1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1889
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1889#FFFFFF#000000##FFFFFF
##4C18891.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#3C3851
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1889;
/* rgb */ color: rgb(76, 24, 137);
/* oklch */ color: oklch(36.3% 0.170 297.9);
Tailwind
colors: {
  custom: {
    50: '#855cac',
    500: '#4c1889',
    950: '#000000',
  },
}
SCSS
$custom: #4c1889;
$custom-light: #855cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1889",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 267.611,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36323,
    "c": 0.17002,
    "h": 297.9
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#4C1889
secondary
#83BD40
accent
#ED3B9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1889

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

Preview Lab → · Contrast checker → · Palette generator →

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