#4C2E95#4C2E95

#4C2E95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.159 H 290.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4C2E95
RGBrgb(76, 46, 149)
HSLhsl(257, 53%, 38%)
HSVhsv(257, 69%, 58%)
CMYKcmyk(49%, 69.1%, 0%, 41.6%)
CIE-LABlab(28.54, 39.09, -51.93)
CIE-LCHlch(28.54, 65.00, 306.97°)
OKLaboklab(40.1% 0.0566 -0.1488)
OKLCHoklch(40.1% 0.159 290.8)
XYZxyz(9.3808, 5.6601, 29.0262)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E95 #77952E
analogous
#2E4395 #4C2E95 #7F2E95
triadic
#4C2E95 #954C2E #2E954C
tetradic
#4C2E95 #952E43 #77952E #2E957F
square
#4C2E95 #952E43 #77952E #2E957F
split-complementary
#4C2E95 #957F2E #43952E
monochromatic
#1C1137 #342066 #4C2E95 #643DC3 #896CD2

Accessibility & contrast

On white

9.85
#4C2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E95
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E95#FFFFFF#000000##FFFFFF
##4C2E951.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#34485D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c2e95;
/* rgb */ color: rgb(76, 46, 149);
/* oklch */ color: oklch(40.1% 0.159 290.8);
Tailwind
colors: {
  custom: {
    50: '#8569b5',
    500: '#4c2e95',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e95;
$custom-light: #8569b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e95",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 257.476,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40098,
    "c": 0.15921,
    "h": 290.8
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#4C2E95
secondary
#A1B966
accent
#DC4CB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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