#4C1989#4C1989

#4C1989 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.169 H 297.8°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4C1989
RGBrgb(76, 25, 137)
HSLhsl(267, 69%, 32%)
HSVhsv(267, 82%, 54%)
CMYKcmyk(44.5%, 81.8%, 0%, 46.3%)
CIE-LABlab(23.80, 46.14, -52.25)
CIE-LCHlch(23.80, 69.70, 311.45°)
OKLaboklab(36.42% 0.0788 -0.1496)
OKLCHoklch(36.42% 0.169 297.8)
XYZxyz(7.8423, 4.0378, 24.0282)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1989 #568919
analogous
#191E89 #4C1989 #841989
triadic
#4C1989 #894C19 #19894C
tetradic
#4C1989 #89191E #568919 #198984
square
#4C1989 #89191E #568919 #198984
split-complementary
#4C1989 #898419 #1E8919
monochromatic
#130621 #2F1055 #4C1989 #6922BD #8740DC

Accessibility & contrast

On white

11.62
#4C1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1989
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1989#FFFFFF#000000##FFFFFF
##4C19891.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1989;
/* rgb */ color: rgb(76, 25, 137);
/* oklch */ color: oklch(36.4% 0.169 297.8);
Tailwind
colors: {
  custom: {
    50: '#855dac',
    500: '#4c1989',
    950: '#000000',
  },
}
SCSS
$custom: #4c1989;
$custom-light: #855dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1989",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 267.321,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36419,
    "c": 0.16908,
    "h": 297.8
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#4C1989
secondary
#84BC41
accent
#EC3C9C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1989

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

Preview Lab → · Contrast checker → · Palette generator →

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