#4C1681#4C1681

#4C1681 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.163 H 300.8°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4C1681
RGBrgb(76, 22, 129)
HSLhsl(270, 71%, 30%)
HSVhsv(270, 83%, 51%)
CMYKcmyk(41.1%, 82.9%, 0%, 49.4%)
CIE-LABlab(22.64, 45.30, -49.12)
CIE-LCHlch(22.64, 66.82, 312.69°)
OKLaboklab(35.38% 0.0837 -0.1404)
OKLCHoklch(35.38% 0.163 300.8)
XYZxyz(7.2289, 3.6952, 21.0970)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1681 #4B8116
analogous
#161681 #4C1681 #811681
triadic
#4C1681 #814C16 #16814C
tetradic
#4C1681 #811616 #4B8116 #168181
square
#4C1681 #811616 #4B8116 #168181
split-complementary
#4C1681 #818116 #168116
monochromatic
#0F041A #2D0D4D #4C1681 #6B1FB5 #8935DD

Accessibility & contrast

On white

12.08
#4C1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1681
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1681#FFFFFF#000000##FFFFFF
##4C16811.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#40344C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1681;
/* rgb */ color: rgb(76, 22, 129);
/* oklch */ color: oklch(35.4% 0.163 300.8);
Tailwind
colors: {
  custom: {
    50: '#845ba6',
    500: '#4c1681',
    950: '#000000',
  },
}
SCSS
$custom: #4c1681;
$custom-light: #845ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1681",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 270.28,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35384,
    "c": 0.16346,
    "h": 300.8
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#4C1681
secondary
#79B63D
accent
#EE3A93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1681

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

Preview Lab → · Contrast checker → · Palette generator →

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