#4C339D#4C339D

#4C339D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.163 H 288.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4C339D
RGBrgb(76, 51, 157)
HSLhsl(254, 51%, 41%)
HSVhsv(254, 68%, 62%)
CMYKcmyk(51.6%, 67.5%, 0%, 38.4%)
CIE-LABlab(30.25, 38.63, -54.02)
CIE-LCHlch(30.25, 66.41, 305.57°)
OKLaboklab(41.54% 0.0503 -0.155)
OKLCHoklch(41.54% 0.163 288)
XYZxyz(10.2483, 6.3380, 32.5751)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C339D #849D33
analogous
#334F9D #4C339D #81339D
triadic
#4C339D #9D4C33 #339D4C
tetradic
#4C339D #9D334F #849D33 #339D81
square
#4C339D #9D334F #849D33 #339D81
split-complementary
#4C339D #9D8133 #4F9D33
monochromatic
#1F1541 #36246F #4C339D #6649C4 #8D77D3

Accessibility & contrast

On white

9.26
#4C339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C339D
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C339D#FFFFFF#000000##FFFFFF
##4C339D1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#2F4D63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c339d;
/* rgb */ color: rgb(76, 51, 157);
/* oklch */ color: oklch(41.5% 0.163 288.0);
Tailwind
colors: {
  custom: {
    50: '#866cbb',
    500: '#4c339d',
    950: '#000000',
  },
}
SCSS
$custom: #4c339d;
$custom-light: #866cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c339d",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 254.151,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41536,
    "c": 0.16294,
    "h": 288
  },
  "luminance": 0.06338
}

Semantic roles & 50–950 ramp

primary
#4C339D
secondary
#AABB70
accent
#DA4DB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C339D

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

Preview Lab → · Contrast checker → · Palette generator →

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