#4C2C9F#4C2C9F

#4C2C9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.174 H 289.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4C2C9F
RGBrgb(76, 44, 159)
HSLhsl(257, 57%, 40%)
HSVhsv(257, 72%, 62%)
CMYKcmyk(52.2%, 72.3%, 0%, 37.6%)
CIE-LABlab(29.01, 43.12, -57.27)
CIE-LCHlch(29.01, 71.69, 306.98°)
OKLaboklab(40.7% 0.0566 -0.1645)
OKLCHoklch(40.7% 0.174 289)
XYZxyz(10.1374, 5.8406, 33.3874)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C9F #7F9F2C
analogous
#2C459F #4C2C9F #862C9F
triadic
#4C2C9F #9F4C2C #2C9F4C
tetradic
#4C2C9F #9F2C45 #7F9F2C #2C9F86
square
#4C2C9F #9F2C45 #7F9F2C #2C9F86
split-complementary
#4C2C9F #9F862C #459F2C
monochromatic
#1E113F #351F6F #4C2C9F #653ECA #8C6ED7

Accessibility & contrast

On white

9.69
#4C2C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C2C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C9F
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C9F#FFFFFF#000000##FFFFFF
##4C2C9F1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#2E4A62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2c9f;
/* rgb */ color: rgb(76, 44, 159);
/* oklch */ color: oklch(40.7% 0.174 289.0);
Tailwind
colors: {
  custom: {
    50: '#8768bc',
    500: '#4c2c9f',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c9f;
$custom-light: #8768bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c9f",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 256.696,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.407,
    "c": 0.17396,
    "h": 289
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#4C2C9F
secondary
#A6BE69
accent
#E048B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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