#4C2E8E#4C2E8E

#4C2E8E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.150 H 292.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4C2E8E
RGBrgb(76, 46, 142)
HSLhsl(259, 51%, 37%)
HSVhsv(259, 68%, 56%)
CMYKcmyk(46.5%, 67.6%, 0%, 44.3%)
CIE-LABlab(27.96, 37.04, -48.55)
CIE-LCHlch(27.96, 61.07, 307.33°)
OKLaboklab(39.5% 0.0576 -0.1389)
OKLCHoklch(39.5% 0.15 292.5)
XYZxyz(8.8386, 5.4432, 26.1709)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E8E #708E2E
analogous
#2E408E #4C2E8E #7C2E8E
triadic
#4C2E8E #8E4C2E #2E8E4C
tetradic
#4C2E8E #8E2E40 #708E2E #2E8E7C
square
#4C2E8E #8E2E40 #708E2E #2E8E7C
split-complementary
#4C2E8E #8E7C2E #408E2E
monochromatic
#1B1032 #331F60 #4C2E8E #653DBC #8868CE

Accessibility & contrast

On white

10.05
#4C2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E8E
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E8E#FFFFFF#000000##FFFFFF
##4C2E8E1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#39455A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2e8e;
/* rgb */ color: rgb(76, 46, 142);
/* oklch */ color: oklch(39.5% 0.150 292.5);
Tailwind
colors: {
  custom: {
    50: '#8469b0',
    500: '#4c2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e8e;
$custom-light: #8469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e8e",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 258.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.15037,
    "h": 292.5
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#4C2E8E
secondary
#9BB563
accent
#DB4DAE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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