#4C2E9D#4C2E9D

#4C2E9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.169 H 289.0°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4C2E9D
RGBrgb(76, 46, 157)
HSLhsl(256, 55%, 40%)
HSVhsv(256, 71%, 62%)
CMYKcmyk(51.6%, 70.7%, 0%, 38.4%)
CIE-LABlab(29.22, 41.45, -55.70)
CIE-LCHlch(29.22, 69.43, 306.65°)
OKLaboklab(40.8% 0.0552 -0.1599)
OKLCHoklch(40.8% 0.169 289)
XYZxyz(10.0415, 5.9244, 32.5062)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E9D #7F9D2E
analogous
#2E489D #4C2E9D #832E9D
triadic
#4C2E9D #9D4C2E #2E9D4C
tetradic
#4C2E9D #9D2E48 #7F9D2E #2E9D83
square
#4C2E9D #9D2E48 #7F9D2E #2E9D83
split-complementary
#4C2E9D #9D832E #489D2E
monochromatic
#1E123E #35206E #4C2E9D #6541C7 #8C70D5

Accessibility & contrast

On white

9.61
#4C2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4C2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E9D
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E9D#FFFFFF#000000##FFFFFF
##4C2E9D1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#2F4B62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2e9d;
/* rgb */ color: rgb(76, 46, 157);
/* oklch */ color: oklch(40.8% 0.169 289.0);
Tailwind
colors: {
  custom: {
    50: '#8669bb',
    500: '#4c2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e9d;
$custom-light: #8669bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e9d",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 256.216,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40798,
    "c": 0.16915,
    "h": 289
  },
  "luminance": 0.05925
}

Semantic roles & 50–950 ramp

primary
#4C2E9D
secondary
#A6BD6A
accent
#DE4AB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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