#4C2C8E#4C2C8E

#4C2C8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.153 H 293.0°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4C2C8E
RGBrgb(76, 44, 142)
HSLhsl(260, 53%, 36%)
HSVhsv(260, 69%, 56%)
CMYKcmyk(46.5%, 69%, 0%, 44.3%)
CIE-LABlab(27.55, 38.17, -49.23)
CIE-LCHlch(27.55, 62.29, 307.79°)
OKLaboklab(39.21% 0.0598 -0.1409)
OKLCHoklch(39.21% 0.153 293)
XYZxyz(8.7623, 5.2906, 26.1455)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C8E #6E8E2C
analogous
#2C3D8E #4C2C8E #7D2C8E
triadic
#4C2C8E #8E4C2C #2C8E4C
tetradic
#4C2C8E #8E2C3D #6E8E2C #2C8E7D
square
#4C2C8E #8E2C3D #6E8E2C #2C8E7D
split-complementary
#4C2C8E #8E7D2C #3D8E2C
monochromatic
#1A0F31 #331E5F #4C2C8E #653ABD #8865CF

Accessibility & contrast

On white

10.20
#4C2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C8E
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C8E#FFFFFF#000000##FFFFFF
##4C2C8E1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#394459
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2c8e;
/* rgb */ color: rgb(76, 44, 142);
/* oklch */ color: oklch(39.2% 0.153 293.0);
Tailwind
colors: {
  custom: {
    50: '#8467b0',
    500: '#4c2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c8e;
$custom-light: #8467b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c8e",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 259.592,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39206,
    "c": 0.15303,
    "h": 293
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#4C2C8E
secondary
#9AB660
accent
#DC4CAD
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4C2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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