#4C1767#4C1767

#4C1767 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.135 H 311.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#4C1767
RGBrgb(76, 23, 103)
HSLhsl(280, 63%, 25%)
HSVhsv(280, 78%, 40%)
CMYKcmyk(26.2%, 77.7%, 0%, 59.6%)
CIE-LABlab(20.55, 38.55, -35.79)
CIE-LCHlch(20.55, 52.61, 317.13°)
OKLaboklab(33.23% 0.0894 -0.1013)
OKLCHoklch(33.23% 0.135 311.4)
XYZxyz(5.7346, 3.1287, 13.1311)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1767 #326717
analogous
#241767 #4C1767 #67175A
triadic
#4C1767 #674C17 #17674C
tetradic
#4C1767 #672417 #326717 #175A67
square
#4C1767 #672417 #326717 #175A67
split-complementary
#4C1767 #5A6717 #176724
monochromatic
#120619 #270C35 #4C1767 #712299 #962DCB

Accessibility & contrast

On white

12.92
#4C1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1767
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1767#FFFFFF#000000##FFFFFF
##4C17671.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#0A3265
Tritanopia (blue-blind)
#49293E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c1767;
/* rgb */ color: rgb(76, 23, 103);
/* oklch */ color: oklch(33.2% 0.135 311.4);
Tailwind
colors: {
  custom: {
    50: '#815a93',
    500: '#4c1767',
    950: '#000000',
  },
}
SCSS
$custom: #4c1767;
$custom-light: #815a93;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1767",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 279.75,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33228,
    "c": 0.13506,
    "h": 311.4
  },
  "luminance": 0.03129
}

Semantic roles & 50–950 ramp

primary
#4C1767
secondary
#5D9D3D
accent
#E74179
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1767

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

Preview Lab → · Contrast checker → · Palette generator →

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