#4C1173#4C1173

#4C1173 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.154 H 306.7°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#4C1173
RGBrgb(76, 17, 115)
HSLhsl(276, 74%, 26%)
HSVhsv(276, 85%, 45%)
CMYKcmyk(33.9%, 85.2%, 0%, 54.9%)
CIE-LABlab(20.73, 43.75, -43.29)
CIE-LCHlch(20.73, 61.55, 315.30°)
OKLaboklab(33.67% 0.092 -0.1233)
OKLCHoklch(33.67% 0.154 306.7)
XYZxyz(6.2748, 3.1753, 16.4987)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1173 #387311
analogous
#1B1173 #4C1173 #731169
triadic
#4C1173 #734C11 #11734C
tetradic
#4C1173 #731B11 #387311 #116973
square
#4C1173 #731B11 #387311 #116973
split-complementary
#4C1173 #697311 #11731B
monochromatic
#12041B #29093E #4C1173 #6F19A8 #9221DE

Accessibility & contrast

On white

12.84
#4C1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1173
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1173#FFFFFF#000000##FFFFFF
##4C11731.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#452C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1173;
/* rgb */ color: rgb(76, 17, 115);
/* oklch */ color: oklch(33.7% 0.154 306.7);
Tailwind
colors: {
  custom: {
    50: '#83589c',
    500: '#4c1173',
    950: '#000000',
  },
}
SCSS
$custom: #4c1173;
$custom-light: #83589c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1173",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 276.122,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33668,
    "c": 0.15382,
    "h": 306.7
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#4C1173
secondary
#64AA36
accent
#F13781
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1173

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

Preview Lab → · Contrast checker → · Palette generator →

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