#4C1788#4C1788

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

Color values

HEX#4C1788
RGBrgb(76, 23, 136)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 53%)
CMYKcmyk(44.1%, 83.1%, 0%, 46.7%)
CIE-LABlab(23.43, 46.68, -52.22)
CIE-LCHlch(23.43, 70.05, 311.79°)
OKLaboklab(36.13% 0.0806 -0.1495)
OKLCHoklch(36.13% 0.17 298.3)
XYZxyz(7.7297, 3.9267, 23.6385)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1788 #538817
analogous
#171A88 #4C1788 #841788
triadic
#4C1788 #884C17 #17884C
tetradic
#4C1788 #88171A #538817 #178884
square
#4C1788 #88171A #538817 #178884
split-complementary
#4C1788 #888417 #1A8817
monochromatic
#11051F #2F0E54 #4C1788 #6920BC #883BDE

Accessibility & contrast

On white

11.76
#4C1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1788
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1788#FFFFFF#000000##FFFFFF
##4C17881.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#3D3750
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1788;
/* rgb */ color: rgb(76, 23, 136);
/* oklch */ color: oklch(36.1% 0.170 298.3);
Tailwind
colors: {
  custom: {
    50: '#855cac',
    500: '#4c1788',
    950: '#000000',
  },
}
SCSS
$custom: #4c1788;
$custom-light: #855cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1788",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 268.142,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.16988,
    "h": 298.3
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#4C1788
secondary
#81BC3F
accent
#EE3A99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1788

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

Preview Lab → · Contrast checker → · Palette generator →

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