#4C288D#4C288D

#4C288D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.157 H 294.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4C288D
RGBrgb(76, 40, 141)
HSLhsl(261, 56%, 35%)
HSVhsv(261, 72%, 55%)
CMYKcmyk(46.1%, 71.6%, 0%, 44.7%)
CIE-LABlab(26.67, 40.08, -50.04)
CIE-LCHlch(26.67, 64.11, 308.69°)
OKLaboklab(38.55% 0.0641 -0.1432)
OKLCHoklch(38.55% 0.157 294.1)
XYZxyz(8.5457, 4.9769, 25.7045)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C288D #698D28
analogous
#28368D #4C288D #7E288D
triadic
#4C288D #8D4C28 #288D4C
tetradic
#4C288D #8D2836 #698D28 #288D7E
square
#4C288D #8D2836 #698D28 #288D7E
split-complementary
#4C288D #8D7E28 #368D28
monochromatic
#190D2E #321A5D #4C288D #6636BD #875ED1

Accessibility & contrast

On white

10.52
#4C288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C288D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C288D#FFFFFF#000000##FFFFFF
##4C288D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#394157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c288d;
/* rgb */ color: rgb(76, 40, 141);
/* oklch */ color: oklch(38.6% 0.157 294.1);
Tailwind
colors: {
  custom: {
    50: '#8465af',
    500: '#4c288d',
    950: '#000000',
  },
}
SCSS
$custom: #4c288d;
$custom-light: #8465af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c288d",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 261.386,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38552,
    "c": 0.15694,
    "h": 294.1
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#4C288D
secondary
#96B75A
accent
#DF49A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C288D

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

Preview Lab → · Contrast checker → · Palette generator →

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