#4C288C#4C288C

#4C288C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.156 H 294.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4C288C
RGBrgb(76, 40, 140)
HSLhsl(262, 56%, 35%)
HSVhsv(262, 71%, 55%)
CMYKcmyk(45.7%, 71.4%, 0%, 45.1%)
CIE-LABlab(26.58, 39.79, -49.56)
CIE-LCHlch(26.58, 63.56, 308.76°)
OKLaboklab(38.46% 0.0643 -0.1418)
OKLCHoklch(38.46% 0.156 294.4)
XYZxyz(8.4716, 4.9473, 25.3144)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C288C #688C28
analogous
#28368C #4C288C #7E288C
triadic
#4C288C #8C4C28 #288C4C
tetradic
#4C288C #8C2836 #688C28 #288C7E
square
#4C288C #8C2836 #688C28 #288C7E
split-complementary
#4C288C #8C7E28 #368C28
monochromatic
#180D2D #321A5C #4C288C #6636BC #875ED1

Accessibility & contrast

On white

10.55
#4C288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C288C
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C288C#FFFFFF#000000##FFFFFF
##4C288C1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#3A4157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c288c;
/* rgb */ color: rgb(76, 40, 140);
/* oklch */ color: oklch(38.5% 0.156 294.4);
Tailwind
colors: {
  custom: {
    50: '#8465ae',
    500: '#4c288c',
    950: '#000000',
  },
}
SCSS
$custom: #4c288c;
$custom-light: #8465ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c288c",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 261.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38465,
    "c": 0.15572,
    "h": 294.4
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#4C288C
secondary
#95B65A
accent
#DF49A9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C288C

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

Preview Lab → · Contrast checker → · Palette generator →

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