#4C1568#4C1568

#4C1568 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.139 H 311.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4C1568
RGBrgb(76, 21, 104)
HSLhsl(280, 66%, 25%)
HSVhsv(280, 80%, 41%)
CMYKcmyk(26.9%, 79.8%, 0%, 59.2%)
CIE-LABlab(20.33, 39.64, -36.80)
CIE-LCHlch(20.33, 54.09, 317.13°)
OKLaboklab(33.1% 0.0912 -0.1042)
OKLCHoklch(33.1% 0.139 311.2)
XYZxyz(5.7469, 3.0725, 13.3843)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1568 #316815
analogous
#231568 #4C1568 #68155B
triadic
#4C1568 #684C15 #15684C
tetradic
#4C1568 #682315 #316815 #155B68
square
#4C1568 #682315 #316815 #155B68
split-complementary
#4C1568 #5B6815 #156823
monochromatic
#130519 #270B35 #4C1568 #711F9B #962ACE

Accessibility & contrast

On white

13.01
#4C1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4C1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1568
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1568#FFFFFF#000000##FFFFFF
##4C15681.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#053266
Tritanopia (blue-blind)
#48293E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c1568;
/* rgb */ color: rgb(76, 21, 104);
/* oklch */ color: oklch(33.1% 0.139 311.2);
Tailwind
colors: {
  custom: {
    50: '#825994',
    500: '#4c1568',
    950: '#000000',
  },
}
SCSS
$custom: #4c1568;
$custom-light: #825994;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1568",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 279.759,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33097,
    "c": 0.13852,
    "h": 311.2
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#4C1568
secondary
#5C9F3A
accent
#E93E78
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1568

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

Preview Lab → · Contrast checker → · Palette generator →

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