#4C2C8C#4C2C8C

#4C2C8C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.151 H 293.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4C2C8C
RGBrgb(76, 44, 140)
HSLhsl(260, 52%, 36%)
HSVhsv(260, 69%, 55%)
CMYKcmyk(45.7%, 68.6%, 0%, 45.1%)
CIE-LABlab(27.38, 37.59, -48.26)
CIE-LCHlch(27.38, 61.17, 307.92°)
OKLaboklab(39.04% 0.0601 -0.138)
OKLCHoklch(39.04% 0.151 293.5)
XYZxyz(8.6135, 5.2311, 25.3617)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C8C #6C8C2C
analogous
#2C3C8C #4C2C8C #7C2C8C
triadic
#4C2C8C #8C4C2C #2C8C4C
tetradic
#4C2C8C #8C2C3C #6C8C2C #2C8C7C
square
#4C2C8C #8C2C3C #6C8C2C #2C8C7C
split-complementary
#4C2C8C #8C7C2C #3C8C2C
monochromatic
#190F2F #331D5D #4C2C8C #653BBB #8764CE

Accessibility & contrast

On white

10.26
#4C2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C2C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C8C
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C8C#FFFFFF#000000##FFFFFF
##4C2C8C1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#3A4358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2c8c;
/* rgb */ color: rgb(76, 44, 140);
/* oklch */ color: oklch(39.0% 0.151 293.5);
Tailwind
colors: {
  custom: {
    50: '#8467ae',
    500: '#4c2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c8c;
$custom-light: #8467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c8c",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 260,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39037,
    "c": 0.15052,
    "h": 293.5
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

primary
#4C2C8C
secondary
#98B55F
accent
#DC4CAC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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