#4C2C87#4C2C87

#4C2C87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.144 H 294.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4C2C87
RGBrgb(76, 44, 135)
HSLhsl(261, 51%, 35%)
HSVhsv(261, 67%, 53%)
CMYKcmyk(43.7%, 67.4%, 0%, 47.1%)
CIE-LABlab(26.98, 36.15, -45.80)
CIE-LCHlch(26.98, 58.35, 308.28°)
OKLaboklab(38.62% 0.0607 -0.1308)
OKLCHoklch(38.62% 0.144 294.9)
XYZxyz(8.2532, 5.0869, 23.4640)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C87 #67872C
analogous
#2C3987 #4C2C87 #7A2C87
triadic
#4C2C87 #874C2C #2C874C
tetradic
#4C2C87 #872C39 #67872C #2C877A
square
#4C2C87 #872C39 #67872C #2C877A
split-complementary
#4C2C87 #877A2C #39872C
monochromatic
#180E2B #321D59 #4C2C87 #663BB5 #8762CC

Accessibility & contrast

On white

10.41
#4C2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2C87
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C87#FFFFFF#000000##FFFFFF
##4C2C871.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#3C4155
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2c87;
/* rgb */ color: rgb(76, 44, 135);
/* oklch */ color: oklch(38.6% 0.144 294.9);
Tailwind
colors: {
  custom: {
    50: '#8367ab',
    500: '#4c2c87',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c87;
$custom-light: #8367ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c87",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 261.099,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38621,
    "c": 0.14421,
    "h": 294.9
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#4C2C87
secondary
#94B25D
accent
#DA4DA9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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