#4C1E96#4C1E96

#4C1E96 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.178 H 293.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4C1E96
RGBrgb(76, 30, 150)
HSLhsl(263, 67%, 35%)
HSVhsv(263, 80%, 59%)
CMYKcmyk(49.3%, 80%, 0%, 41.2%)
CIE-LABlab(25.76, 47.44, -57.08)
CIE-LCHlch(25.76, 74.22, 309.73°)
OKLaboklab(38.16% 0.0707 -0.1638)
OKLCHoklch(38.16% 0.178 293.3)
XYZxyz(8.9483, 4.6668, 29.2775)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E96 #68961E
analogous
#1E2C96 #4C1E96 #881E96
triadic
#4C1E96 #964C1E #1E964C
tetradic
#4C1E96 #961E2C #68961E #1E9688
square
#4C1E96 #961E2C #68961E #1E9688
split-complementary
#4C1E96 #96881E #2C961E
monochromatic
#180A30 #321463 #4C1E96 #6628C9 #8752DC

Accessibility & contrast

On white

10.86
#4C1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1E96
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E96#FFFFFF#000000##FFFFFF
##4C1E961.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#35405A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c1e96;
/* rgb */ color: rgb(76, 30, 150);
/* oklch */ color: oklch(38.2% 0.178 293.3);
Tailwind
colors: {
  custom: {
    50: '#8660b6',
    500: '#4c1e96',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e96;
$custom-light: #8660b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e96",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 263,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38164,
    "c": 0.17845,
    "h": 293.3
  },
  "luminance": 0.04667
}

Semantic roles & 50–950 ramp

primary
#4C1E96
secondary
#95BF50
accent
#EA3EA8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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