#4C1EA8#4C1EA8

#4C1EA8 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.198 H 289.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4C1EA8
RGBrgb(76, 30, 168)
HSLhsl(260, 70%, 39%)
HSVhsv(260, 82%, 66%)
CMYKcmyk(54.8%, 82.1%, 0%, 34.1%)
CIE-LABlab(27.55, 52.28, -65.11)
CIE-LCHlch(27.55, 83.50, 308.76°)
OKLaboklab(39.94% 0.0647 -0.1873)
OKLCHoklch(39.94% 0.198 289.1)
XYZxyz(10.5106, 5.2917, 37.5058)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1EA8 #7AA81E
analogous
#1E35A8 #4C1EA8 #911EA8
triadic
#4C1EA8 #A84C1E #1EA84C
tetradic
#4C1EA8 #A81E35 #7AA81E #1EA891
square
#4C1EA8 #A81E35 #7AA81E #1EA891
split-complementary
#4C1EA8 #A8911E #35A81E
monochromatic
#1D0B40 #351574 #4C1EA8 #642AD9 #8A5EE2

Accessibility & contrast

On white

10.20
#4C1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1EA8
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1EA8#FFFFFF#000000##FFFFFF
##4C1EA81.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#264864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c1ea8;
/* rgb */ color: rgb(76, 30, 168);
/* oklch */ color: oklch(39.9% 0.198 289.1);
Tailwind
colors: {
  custom: {
    50: '#8961c3',
    500: '#4c1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4c1ea8;
$custom-light: #8961c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1ea8",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 260,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39941,
    "c": 0.19819,
    "h": 289.1
  },
  "luminance": 0.05292
}

Semantic roles & 50–950 ramp

primary
#4C1EA8
secondary
#A3C75B
accent
#ED3BB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4C1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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