#4C388F#4C388F

#4C388F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.2% C 0.138 H 289.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4C388F
RGBrgb(76, 56, 143)
HSLhsl(254, 44%, 39%)
HSVhsv(254, 61%, 56%)
CMYKcmyk(46.9%, 60.8%, 0%, 43.9%)
CIE-LABlab(30.27, 31.37, -45.42)
CIE-LCHlch(30.27, 55.20, 304.63°)
OKLaboklab(41.21% 0.0461 -0.1297)
OKLCHoklch(41.21% 0.138 289.5)
XYZxyz(9.3512, 6.3477, 26.7138)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C388F #7B8F38
analogous
#38508F #4C388F #78388F
triadic
#4C388F #8F4C38 #388F4C
tetradic
#4C388F #8F3850 #7B8F38 #388F78
square
#4C388F #8F3850 #7B8F38 #388F78
split-complementary
#4C388F #8F7838 #508F38
monochromatic
#1D1637 #352763 #4C388F #654BB9 #8A77CA

Accessibility & contrast

On white

9.25
#4C388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4C388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C388F
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C388F#FFFFFF#000000##FFFFFF
##4C388F1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#374C5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c388f;
/* rgb */ color: rgb(76, 56, 143);
/* oklch */ color: oklch(41.2% 0.138 289.5);
Tailwind
colors: {
  custom: {
    50: '#836fb0',
    500: '#4c388f',
    950: '#000000',
  },
}
SCSS
$custom: #4c388f;
$custom-light: #836fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c388f",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 253.793,
    "s": 43.719,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.13762,
    "h": 289.5
  },
  "luminance": 0.06348
}

Semantic roles & 50–950 ramp

primary
#4C388F
secondary
#A4B370
accent
#D354B6
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4C388F

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

Preview Lab → · Contrast checker → · Palette generator →

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