#4C2C81#4C2C81

#4C2C81 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.137 H 296.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4C2C81
RGBrgb(76, 44, 129)
HSLhsl(263, 49%, 34%)
HSVhsv(263, 66%, 51%)
CMYKcmyk(41.1%, 65.9%, 0%, 49.4%)
CIE-LABlab(26.51, 34.43, -42.81)
CIE-LCHlch(26.51, 54.93, 308.81°)
OKLaboklab(38.14% 0.0614 -0.122)
OKLCHoklch(38.14% 0.137 296.7)
XYZxyz(7.8426, 4.9227, 21.3016)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C81 #61812C
analogous
#2C3781 #4C2C81 #772C81
triadic
#4C2C81 #814C2C #2C814C
tetradic
#4C2C81 #812C37 #61812C #2C8177
square
#4C2C81 #812C37 #61812C #2C8177
split-complementary
#4C2C81 #81772C #37812C
monochromatic
#160D26 #311C53 #4C2C81 #673CAF #875FC8

Accessibility & contrast

On white

10.58
#4C2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C81
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C81#FFFFFF#000000##FFFFFF
##4C2C811.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#3F3F52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2c81;
/* rgb */ color: rgb(76, 44, 129);
/* oklch */ color: oklch(38.1% 0.137 296.7);
Tailwind
colors: {
  custom: {
    50: '#8267a6',
    500: '#4c2c81',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c81;
$custom-light: #8267a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c81",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 262.588,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38136,
    "c": 0.13656,
    "h": 296.7
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#4C2C81
secondary
#8FAF5A
accent
#D94FA5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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