#4C348C#4C348C

#4C348C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.139 H 291.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#4C348C
RGBrgb(76, 52, 140)
HSLhsl(256, 46%, 38%)
HSVhsv(256, 63%, 55%)
CMYKcmyk(45.7%, 62.9%, 0%, 45.1%)
CIE-LABlab(29.12, 32.90, -45.44)
CIE-LCHlch(29.12, 56.10, 305.91°)
OKLaboklab(40.3% 0.051 -0.1297)
OKLCHoklch(40.3% 0.139 291.4)
XYZxyz(8.9408, 5.8856, 25.4708)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C348C #748C34
analogous
#34488C #4C348C #78348C
triadic
#4C348C #8C4C34 #348C4C
tetradic
#4C348C #8C3448 #748C34 #348C78
square
#4C348C #8C3448 #748C34 #348C78
split-complementary
#4C348C #8C7834 #488C34
monochromatic
#1C1333 #34235F #4C348C #6445B9 #8970CA

Accessibility & contrast

On white

9.65
#4C348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4C348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C348C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C348C#FFFFFF#000000##FFFFFF
##4C348C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#39485B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c348c;
/* rgb */ color: rgb(76, 52, 140);
/* oklch */ color: oklch(40.3% 0.139 291.4);
Tailwind
colors: {
  custom: {
    50: '#836dae',
    500: '#4c348c',
    950: '#000000',
  },
}
SCSS
$custom: #4c348c;
$custom-light: #836dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c348c",
  "rgb": {
    "r": 76,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 256.364,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40296,
    "c": 0.13938,
    "h": 291.4
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#4C348C
secondary
#9EB26A
accent
#D552B2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4C348C

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

Preview Lab → · Contrast checker → · Palette generator →

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