#4C1EA7#4C1EA7

#4C1EA7 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.197 H 289.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4C1EA7
RGBrgb(76, 30, 167)
HSLhsl(260, 70%, 39%)
HSVhsv(260, 82%, 65%)
CMYKcmyk(54.5%, 82%, 0%, 34.5%)
CIE-LABlab(27.45, 52.01, -64.68)
CIE-LCHlch(27.45, 82.99, 308.80°)
OKLaboklab(39.84% 0.065 -0.1861)
OKLCHoklch(39.84% 0.197 289.3)
XYZxyz(10.4178, 5.2546, 37.0170)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1EA7 #79A71E
analogous
#1E34A7 #4C1EA7 #901EA7
triadic
#4C1EA7 #A74C1E #1EA74C
tetradic
#4C1EA7 #A71E34 #79A71E #1EA790
square
#4C1EA7 #A71E34 #79A71E #1EA790
split-complementary
#4C1EA7 #A7901E #34A71E
monochromatic
#1D0B3F #341573 #4C1EA7 #642AD9 #8A5DE2

Accessibility & contrast

On white

10.24
#4C1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1EA7
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1EA7#FFFFFF#000000##FFFFFF
##4C1EA71.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#274764
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c1ea7;
/* rgb */ color: rgb(76, 30, 167);
/* oklch */ color: oklch(39.8% 0.197 289.3);
Tailwind
colors: {
  custom: {
    50: '#8961c2',
    500: '#4c1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #4c1ea7;
$custom-light: #8961c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1ea7",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 260.146,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3984,
    "c": 0.1971,
    "h": 289.3
  },
  "luminance": 0.05255
}

Semantic roles & 50–950 ramp

primary
#4C1EA7
secondary
#A2C65B
accent
#EC3BB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4C1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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