#4C339A#4C339A

#4C339A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.159 H 288.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4C339A
RGBrgb(76, 51, 154)
HSLhsl(255, 50%, 40%)
HSVhsv(255, 67%, 60%)
CMYKcmyk(50.6%, 66.9%, 0%, 39.6%)
CIE-LABlab(30.00, 37.72, -52.60)
CIE-LCHlch(30.00, 64.73, 305.65°)
OKLaboklab(41.28% 0.0507 -0.1508)
OKLCHoklch(41.28% 0.159 288.6)
XYZxyz(9.9954, 6.2368, 31.2427)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C339A #819A33
analogous
#334D9A #4C339A #7F339A
triadic
#4C339A #9A4C33 #339A4C
tetradic
#4C339A #9A334D #819A33 #339A7F
square
#4C339A #9A334D #819A33 #339A7F
split-complementary
#4C339A #9A7F33 #4D9A33
monochromatic
#1F153E #35246C #4C339A #6648C2 #8C76D2

Accessibility & contrast

On white

9.34
#4C339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C339A
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C339A#FFFFFF#000000##FFFFFF
##4C339A1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#314C62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c339a;
/* rgb */ color: rgb(76, 51, 154);
/* oklch */ color: oklch(41.3% 0.159 288.6);
Tailwind
colors: {
  custom: {
    50: '#856cb9',
    500: '#4c339a',
    950: '#000000',
  },
}
SCSS
$custom: #4c339a;
$custom-light: #856cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c339a",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 254.563,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4128,
    "c": 0.1591,
    "h": 288.6
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#4C339A
secondary
#A8BA6F
accent
#DA4EB8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4C339A

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

Preview Lab → · Contrast checker → · Palette generator →

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