#4C2E8D#4C2E8D

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

Color values

HEX#4C2E8D
RGBrgb(76, 46, 141)
HSLhsl(259, 51%, 37%)
HSVhsv(259, 67%, 55%)
CMYKcmyk(46.1%, 67.4%, 0%, 44.7%)
CIE-LABlab(27.88, 36.74, -48.07)
CIE-LCHlch(27.88, 60.50, 307.39°)
OKLaboklab(39.42% 0.0577 -0.1375)
OKLCHoklch(39.42% 0.149 292.8)
XYZxyz(8.7639, 5.4133, 25.7773)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E8D #6F8D2E
analogous
#2E408D #4C2E8D #7C2E8D
triadic
#4C2E8D #8D4C2E #2E8D4C
tetradic
#4C2E8D #8D2E40 #6F8D2E #2E8D7C
square
#4C2E8D #8D2E40 #6F8D2E #2E8D7C
split-complementary
#4C2E8D #8D7C2E #408D2E
monochromatic
#1A1031 #331F5F #4C2E8D #653DBB #8868CE

Accessibility & contrast

On white

10.08
#4C2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4C2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E8D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E8D#FFFFFF#000000##FFFFFF
##4C2E8D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#394559
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2e8d;
/* rgb */ color: rgb(76, 46, 141);
/* oklch */ color: oklch(39.4% 0.149 292.8);
Tailwind
colors: {
  custom: {
    50: '#8469af',
    500: '#4c2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e8d;
$custom-light: #8469af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e8d",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 258.947,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3942,
    "c": 0.1491,
    "h": 292.8
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#4C2E8D
secondary
#9BB562
accent
#DA4EAE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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