#4C2896#4C2896

#4C2896 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.168 H 291.8°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4C2896
RGBrgb(76, 40, 150)
HSLhsl(260, 58%, 37%)
HSVhsv(260, 73%, 59%)
CMYKcmyk(49.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(27.45, 42.64, -54.32)
CIE-LCHlch(27.45, 69.05, 308.13°)
OKLaboklab(39.35% 0.0622 -0.1558)
OKLCHoklch(39.35% 0.168 291.8)
XYZxyz(9.2428, 5.2558, 29.3757)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2896 #729628
analogous
#283B96 #4C2896 #832896
triadic
#4C2896 #964C28 #28964C
tetradic
#4C2896 #96283B #729628 #289683
square
#4C2896 #96283B #729628 #289683
split-complementary
#4C2896 #968328 #3B9628
monochromatic
#1B0E35 #341B66 #4C2896 #6435C6 #8863D5

Accessibility & contrast

On white

10.24
#4C2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2896
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2896#FFFFFF#000000##FFFFFF
##4C28961.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#34455C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2896;
/* rgb */ color: rgb(76, 40, 150);
/* oklch */ color: oklch(39.4% 0.168 291.8);
Tailwind
colors: {
  custom: {
    50: '#8665b6',
    500: '#4c2896',
    950: '#000000',
  },
}
SCSS
$custom: #4c2896;
$custom-light: #8665b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2896",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 259.636,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3935,
    "c": 0.16778,
    "h": 291.8
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#4C2896
secondary
#9DBB5F
accent
#E147AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2896

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

Preview Lab → · Contrast checker → · Palette generator →

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