#4C1973#4C1973

#4C1973 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.145 H 305.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4C1973
RGBrgb(76, 25, 115)
HSLhsl(274, 64%, 27%)
HSVhsv(274, 78%, 45%)
CMYKcmyk(33.9%, 78.3%, 0%, 54.9%)
CIE-LABlab(21.83, 40.57, -41.50)
CIE-LCHlch(21.83, 58.03, 314.35°)
OKLaboklab(34.44% 0.0849 -0.1181)
OKLCHoklch(34.44% 0.145 305.7)
XYZxyz(6.4219, 3.4696, 16.5477)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1973 #407319
analogous
#1F1973 #4C1973 #73196D
triadic
#4C1973 #734C19 #19734C
tetradic
#4C1973 #731F19 #407319 #196D73
square
#4C1973 #731F19 #407319 #196D73
split-complementary
#4C1973 #6D7319 #19731F
monochromatic
#110519 #2B0E41 #4C1973 #6D24A5 #8E34D3

Accessibility & contrast

On white

12.40
#4C1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1973
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1973#FFFFFF#000000##FFFFFF
##4C19731.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1973;
/* rgb */ color: rgb(76, 25, 115);
/* oklch */ color: oklch(34.4% 0.145 305.7);
Tailwind
colors: {
  custom: {
    50: '#825c9c',
    500: '#4c1973',
    950: '#000000',
  },
}
SCSS
$custom: #4c1973;
$custom-light: #825c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1973",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 274,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3444,
    "c": 0.14542,
    "h": 305.7
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#4C1973
secondary
#6DA840
accent
#E74189
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1973

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

Preview Lab → · Contrast checker → · Palette generator →

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