#4C1EA6#4C1EA6

#4C1EA6 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.196 H 289.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4C1EA6
RGBrgb(76, 30, 166)
HSLhsl(260, 69%, 38%)
HSVhsv(260, 82%, 65%)
CMYKcmyk(54.2%, 81.9%, 0%, 34.9%)
CIE-LABlab(27.35, 51.74, -64.24)
CIE-LCHlch(27.35, 82.49, 308.85°)
OKLaboklab(39.74% 0.0654 -0.1848)
OKLCHoklch(39.74% 0.196 289.5)
XYZxyz(10.3257, 5.2177, 36.5320)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1EA6 #78A61E
analogous
#1E34A6 #4C1EA6 #901EA6
triadic
#4C1EA6 #A64C1E #1EA64C
tetradic
#4C1EA6 #A61E34 #78A61E #1EA690
square
#4C1EA6 #A61E34 #78A61E #1EA690
split-complementary
#4C1EA6 #A6901E #34A61E
monochromatic
#1D0B3E #341572 #4C1EA6 #6429D8 #8A5DE2

Accessibility & contrast

On white

10.28
#4C1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1EA6
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1EA6#FFFFFF#000000##FFFFFF
##4C1EA61.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#284763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c1ea6;
/* rgb */ color: rgb(76, 30, 166);
/* oklch */ color: oklch(39.7% 0.196 289.5);
Tailwind
colors: {
  custom: {
    50: '#8961c2',
    500: '#4c1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4c1ea6;
$custom-light: #8961c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1ea6",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 260.294,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39739,
    "c": 0.19601,
    "h": 289.5
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#4C1EA6
secondary
#A1C65A
accent
#EC3CB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4C1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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