#4C288A#4C288A

#4C288A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.153 H 294.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4C288A
RGBrgb(76, 40, 138)
HSLhsl(262, 55%, 35%)
HSVhsv(262, 71%, 54%)
CMYKcmyk(44.9%, 71%, 0%, 45.9%)
CIE-LABlab(26.42, 39.23, -48.59)
CIE-LCHlch(26.42, 62.45, 308.92°)
OKLaboklab(38.29% 0.0647 -0.139)
OKLCHoklch(38.29% 0.153 294.9)
XYZxyz(8.3255, 4.8889, 24.5448)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C288A #668A28
analogous
#28358A #4C288A #7D288A
triadic
#4C288A #8A4C28 #288A4C
tetradic
#4C288A #8A2835 #668A28 #288A7D
square
#4C288A #8A2835 #668A28 #288A7D
split-complementary
#4C288A #8A7D28 #358A28
monochromatic
#180C2B #321A5B #4C288A #6636B9 #875DD0

Accessibility & contrast

On white

10.62
#4C288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C288A
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C288A#FFFFFF#000000##FFFFFF
##4C288A1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#3B4056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c288a;
/* rgb */ color: rgb(76, 40, 138);
/* oklch */ color: oklch(38.3% 0.153 294.9);
Tailwind
colors: {
  custom: {
    50: '#8465ad',
    500: '#4c288a',
    950: '#000000',
  },
}
SCSS
$custom: #4c288a;
$custom-light: #8465ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c288a",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 262.041,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38292,
    "c": 0.15329,
    "h": 294.9
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#4C288A
secondary
#93B559
accent
#DE49A8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C288A

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

Preview Lab → · Contrast checker → · Palette generator →

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