#4C288F#4C288F

#4C288F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.159 H 293.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4C288F
RGBrgb(76, 40, 143)
HSLhsl(261, 56%, 36%)
HSVhsv(261, 72%, 56%)
CMYKcmyk(46.9%, 72%, 0%, 43.9%)
CIE-LABlab(26.84, 40.64, -51.00)
CIE-LCHlch(26.84, 65.22, 308.55°)
OKLaboklab(38.73% 0.0637 -0.1461)
OKLCHoklch(38.73% 0.159 293.6)
XYZxyz(8.6958, 5.0370, 26.4953)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C288F #6B8F28
analogous
#28378F #4C288F #7F288F
triadic
#4C288F #8F4C28 #288F4C
tetradic
#4C288F #8F2837 #6B8F28 #288F7F
square
#4C288F #8F2837 #6B8F28 #288F7F
split-complementary
#4C288F #8F7F28 #378F28
monochromatic
#190D2F #331B5F #4C288F #6535BF #875FD2

Accessibility & contrast

On white

10.46
#4C288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C288F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C288F#FFFFFF#000000##FFFFFF
##4C288F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#384258
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c288f;
/* rgb */ color: rgb(76, 40, 143);
/* oklch */ color: oklch(38.7% 0.159 293.6);
Tailwind
colors: {
  custom: {
    50: '#8565b1',
    500: '#4c288f',
    950: '#000000',
  },
}
SCSS
$custom: #4c288f;
$custom-light: #8565b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c288f",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 260.971,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38726,
    "c": 0.15936,
    "h": 293.6
  },
  "luminance": 0.05037
}

Semantic roles & 50–950 ramp

primary
#4C288F
secondary
#97B85B
accent
#E048AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C288F

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

Preview Lab → · Contrast checker → · Palette generator →

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