#4C2D8E#4C2D8E

#4C2D8E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.152 H 292.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#4C2D8E
RGBrgb(76, 45, 142)
HSLhsl(259, 52%, 37%)
HSVhsv(259, 68%, 56%)
CMYKcmyk(46.5%, 68.3%, 0%, 44.3%)
CIE-LABlab(27.75, 37.61, -48.89)
CIE-LCHlch(27.75, 61.68, 307.56°)
OKLaboklab(39.35% 0.0587 -0.1399)
OKLCHoklch(39.35% 0.152 292.8)
XYZxyz(8.8000, 5.3660, 26.1580)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D8E #6F8E2D
analogous
#2D3F8E #4C2D8E #7D2D8E
triadic
#4C2D8E #8E4C2D #2D8E4C
tetradic
#4C2D8E #8E2D3F #6F8E2D #2D8E7D
square
#4C2D8E #8E2D3F #6F8E2D #2D8E7D
split-complementary
#4C2D8E #8E7D2D #3F8E2D
monochromatic
#1A1031 #331E60 #4C2D8E #653CBC #8867CF

Accessibility & contrast

On white

10.13
#4C2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C2D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D8E
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D8E#FFFFFF#000000##FFFFFF
##4C2D8E1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#394559
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2d8e;
/* rgb */ color: rgb(76, 45, 142);
/* oklch */ color: oklch(39.4% 0.152 292.8);
Tailwind
colors: {
  custom: {
    50: '#8468b0',
    500: '#4c2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d8e;
$custom-light: #8468b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d8e",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 259.175,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39353,
    "c": 0.15171,
    "h": 292.8
  },
  "luminance": 0.05366
}

Semantic roles & 50–950 ramp

primary
#4C2D8E
secondary
#9BB561
accent
#DB4CAE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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