#4C287D#4C287D

#4C287D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.137 H 299.0°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#4C287D
RGBrgb(76, 40, 125)
HSLhsl(265, 52%, 32%)
HSVhsv(265, 68%, 49%)
CMYKcmyk(39.2%, 68%, 0%, 51%)
CIE-LABlab(25.37, 35.59, -42.14)
CIE-LCHlch(25.37, 55.16, 310.18°)
OKLaboklab(37.21% 0.0666 -0.12)
OKLCHoklch(37.21% 0.137 299)
XYZxyz(7.4400, 4.5347, 19.8814)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C287D #597D28
analogous
#282E7D #4C287D #77287D
triadic
#4C287D #7D4C28 #287D4C
tetradic
#4C287D #7D282E #597D28 #287D77
square
#4C287D #7D282E #597D28 #287D77
split-complementary
#4C287D #7D7728 #2E7D28
monochromatic
#140A20 #30194F #4C287D #6837AB #8756C9

Accessibility & contrast

On white

11.01
#4C287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4C287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C287D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C287D#FFFFFF#000000##FFFFFF
##4C287D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#413B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c287d;
/* rgb */ color: rgb(76, 40, 125);
/* oklch */ color: oklch(37.2% 0.137 299.0);
Tailwind
colors: {
  custom: {
    50: '#8264a3',
    500: '#4c287d',
    950: '#000000',
  },
}
SCSS
$custom: #4c287d;
$custom-light: #8264a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c287d",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 265.412,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.13728,
    "h": 299
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

primary
#4C287D
secondary
#87AE53
accent
#DB4D9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C287D

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

Preview Lab → · Contrast checker → · Palette generator →

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