#4C1773#4C1773

#4C1773 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.148 H 306.0°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#4C1773
RGBrgb(76, 23, 115)
HSLhsl(275, 67%, 27%)
HSVhsv(275, 80%, 45%)
CMYKcmyk(33.9%, 80%, 0%, 54.9%)
CIE-LABlab(21.53, 41.43, -41.99)
CIE-LCHlch(21.53, 58.99, 314.62°)
OKLaboklab(34.23% 0.0868 -0.1195)
OKLCHoklch(34.23% 0.148 306)
XYZxyz(6.3807, 3.3872, 16.5340)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1773 #3E7317
analogous
#1E1773 #4C1773 #73176C
triadic
#4C1773 #734C17 #17734C
tetradic
#4C1773 #731E17 #3E7317 #176C73
square
#4C1773 #731E17 #3E7317 #176C73
split-complementary
#4C1773 #6C7317 #17731E
monochromatic
#11051A #2A0D40 #4C1773 #6E21A6 #8F2FD5

Accessibility & contrast

On white

12.52
#4C1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4C1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1773
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1773#FFFFFF#000000##FFFFFF
##4C17731.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#452E44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1773;
/* rgb */ color: rgb(76, 23, 115);
/* oklch */ color: oklch(34.2% 0.148 306.0);
Tailwind
colors: {
  custom: {
    50: '#825b9c',
    500: '#4c1773',
    950: '#000000',
  },
}
SCSS
$custom: #4c1773;
$custom-light: #825b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1773",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 274.565,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34227,
    "c": 0.14771,
    "h": 306
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#4C1773
secondary
#6BA93D
accent
#EA3E87
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1773

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

Preview Lab → · Contrast checker → · Palette generator →

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