#4C2E81#4C2E81

#4C2E81 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.134 H 296.2°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4C2E81
RGBrgb(76, 46, 129)
HSLhsl(262, 47%, 34%)
HSVhsv(262, 64%, 51%)
CMYKcmyk(41.1%, 64.3%, 0%, 49.4%)
CIE-LABlab(26.95, 33.26, -42.10)
CIE-LCHlch(26.95, 53.65, 308.31°)
OKLaboklab(38.45% 0.0589 -0.1199)
OKLCHoklch(38.45% 0.134 296.2)
XYZxyz(7.9189, 5.0753, 21.3270)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E81 #63812E
analogous
#2E3981 #4C2E81 #762E81
triadic
#4C2E81 #814C2E #2E814C
tetradic
#4C2E81 #812E39 #63812E #2E8176
square
#4C2E81 #812E39 #63812E #2E8176
split-complementary
#4C2E81 #81762E #39812E
monochromatic
#170E27 #311E54 #4C2E81 #673EAE #8762C7

Accessibility & contrast

On white

10.42
#4C2E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C2E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E81
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E81#FFFFFF#000000##FFFFFF
##4C2E811.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#003F7F
Tritanopia (blue-blind)
#3F4153
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2e81;
/* rgb */ color: rgb(76, 46, 129);
/* oklch */ color: oklch(38.5% 0.134 296.2);
Tailwind
colors: {
  custom: {
    50: '#8268a6',
    500: '#4c2e81',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e81;
$custom-light: #8268a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e81",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 261.687,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38451,
    "c": 0.13363,
    "h": 296.2
  },
  "luminance": 0.05075
}

Semantic roles & 50–950 ramp

primary
#4C2E81
secondary
#91AE5D
accent
#D751A7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2E81

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

Preview Lab → · Contrast checker → · Palette generator →

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