#4C1D97#4C1D97

#4C1D97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.180 H 293.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4C1D97
RGBrgb(76, 29, 151)
HSLhsl(263, 68%, 35%)
HSVhsv(263, 81%, 59%)
CMYKcmyk(49.7%, 80.8%, 0%, 40.8%)
CIE-LABlab(25.71, 48.14, -57.78)
CIE-LCHlch(25.71, 75.21, 309.80°)
OKLaboklab(38.16% 0.0712 -0.1659)
OKLCHoklch(38.16% 0.181 293.2)
XYZxyz(9.0042, 4.6493, 29.6951)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D97 #68971D
analogous
#1D2B97 #4C1D97 #891D97
triadic
#4C1D97 #974C1D #1D974C
tetradic
#4C1D97 #971D2B #68971D #1D9789
square
#4C1D97 #971D2B #68971D #1D9789
split-complementary
#4C1D97 #97891D #2B971D
monochromatic
#180930 #321364 #4C1D97 #6627CA #8751DE

Accessibility & contrast

On white

10.88
#4C1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D97
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D97#FFFFFF#000000##FFFFFF
##4C1D971.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#34405A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c1d97;
/* rgb */ color: rgb(76, 29, 151);
/* oklch */ color: oklch(38.2% 0.180 293.2);
Tailwind
colors: {
  custom: {
    50: '#8660b7',
    500: '#4c1d97',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d97;
$custom-light: #8660b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d97",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 263.115,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38157,
    "c": 0.1805,
    "h": 293.2
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#4C1D97
secondary
#95C04F
accent
#EB3DA8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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