#4C2E9A#4C2E9A

#4C2E9A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.165 H 289.7°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4C2E9A
RGBrgb(76, 46, 154)
HSLhsl(257, 54%, 39%)
HSVhsv(257, 70%, 60%)
CMYKcmyk(50.6%, 70.1%, 0%, 39.6%)
CIE-LABlab(28.96, 40.57, -54.30)
CIE-LCHlch(28.96, 67.78, 306.76°)
OKLaboklab(40.53% 0.0557 -0.1558)
OKLCHoklch(40.53% 0.165 289.7)
XYZxyz(9.7885, 5.8232, 31.1738)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E9A #7C9A2E
analogous
#2E469A #4C2E9A #822E9A
triadic
#4C2E9A #9A4C2E #2E9A4C
tetradic
#4C2E9A #9A2E46 #7C9A2E #2E9A82
square
#4C2E9A #9A2E46 #7C9A2E #2E9A82
split-complementary
#4C2E9A #9A822E #469A2E
monochromatic
#1D123C #35206B #4C2E9A #653FC6 #8B6FD4

Accessibility & contrast

On white

9.70
#4C2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E9A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E9A#FFFFFF#000000##FFFFFF
##4C2E9A1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#314960
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2e9a;
/* rgb */ color: rgb(76, 46, 154);
/* oklch */ color: oklch(40.5% 0.165 289.7);
Tailwind
colors: {
  custom: {
    50: '#8669b9',
    500: '#4c2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e9a;
$custom-light: #8669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e9a",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 256.667,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40533,
    "c": 0.16545,
    "h": 289.7
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#4C2E9A
secondary
#A4BB69
accent
#DD4AB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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