#4C1E97#4C1E97

#4C1E97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.180 H 293.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4C1E97
RGBrgb(76, 30, 151)
HSLhsl(263, 67%, 35%)
HSVhsv(263, 80%, 59%)
CMYKcmyk(49.7%, 80.1%, 0%, 40.8%)
CIE-LABlab(25.86, 47.71, -57.54)
CIE-LCHlch(25.86, 74.75, 309.67°)
OKLaboklab(38.26% 0.0704 -0.1652)
OKLCHoklch(38.26% 0.18 293.1)
XYZxyz(9.0291, 4.6991, 29.7034)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E97 #69971E
analogous
#1E2C97 #4C1E97 #881E97
triadic
#4C1E97 #974C1E #1E974C
tetradic
#4C1E97 #971E2C #69971E #1E9788
square
#4C1E97 #971E2C #69971E #1E9788
split-complementary
#4C1E97 #97881E #2C971E
monochromatic
#190A31 #321464 #4C1E97 #6628CA #8753DD

Accessibility & contrast

On white

10.83
#4C1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E97
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E97#FFFFFF#000000##FFFFFF
##4C1E971.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1e97;
/* rgb */ color: rgb(76, 30, 151);
/* oklch */ color: oklch(38.3% 0.180 293.1);
Tailwind
colors: {
  custom: {
    50: '#8660b7',
    500: '#4c1e97',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e97;
$custom-light: #8660b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e97",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 262.81,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38261,
    "c": 0.17956,
    "h": 293.1
  },
  "luminance": 0.04699
}

Semantic roles & 50–950 ramp

primary
#4C1E97
secondary
#96C051
accent
#EA3EA8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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