#4C2EA9#4C2EA9

#4C2EA9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.184 H 286.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4C2EA9
RGBrgb(76, 46, 169)
HSLhsl(255, 57%, 42%)
HSVhsv(255, 73%, 66%)
CMYKcmyk(55%, 72.8%, 0%, 33.7%)
CIE-LABlab(30.29, 45.00, -61.21)
CIE-LCHlch(30.29, 75.97, 306.32°)
OKLaboklab(41.89% 0.0527 -0.1761)
OKLCHoklch(41.89% 0.184 286.7)
XYZxyz(11.1168, 6.3545, 38.1692)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EA9 #8BA92E
analogous
#2E4EA9 #4C2EA9 #892EA9
triadic
#4C2EA9 #A94C2E #2EA94C
tetradic
#4C2EA9 #A92E4E #8BA92E #2EA989
square
#4C2EA9 #A92E4E #8BA92E #2EA989
split-complementary
#4C2EA9 #A9892E #4EA92E
monochromatic
#211449 #362179 #4C2EA9 #6847CD #8F77DA

Accessibility & contrast

On white

9.25
#4C2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4C2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EA9
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EA9#FFFFFF#000000##FFFFFF
##4C2EA91.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#244F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2ea9;
/* rgb */ color: rgb(76, 46, 169);
/* oklch */ color: oklch(41.9% 0.184 286.7);
Tailwind
colors: {
  custom: {
    50: '#886ac4',
    500: '#4c2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ea9;
$custom-light: #886ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ea9",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 254.634,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41887,
    "c": 0.18377,
    "h": 286.7
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#4C2EA9
secondary
#AEC271
accent
#E047BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4C2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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