#4C339B#4C339B

#4C339B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.160 H 288.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4C339B
RGBrgb(76, 51, 155)
HSLhsl(254, 50%, 40%)
HSVhsv(254, 67%, 61%)
CMYKcmyk(51%, 67.1%, 0%, 39.2%)
CIE-LABlab(30.08, 38.02, -53.08)
CIE-LCHlch(30.08, 65.29, 305.62°)
OKLaboklab(41.37% 0.0506 -0.1522)
OKLCHoklch(41.37% 0.16 288.4)
XYZxyz(10.0790, 6.2703, 31.6832)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C339B #829B33
analogous
#334E9B #4C339B #80339B
triadic
#4C339B #9B4C33 #339B4C
tetradic
#4C339B #9B334E #829B33 #339B80
square
#4C339B #9B334E #829B33 #339B80
split-complementary
#4C339B #9B8033 #4E9B33
monochromatic
#1F153F #35246D #4C339B #6648C3 #8C76D2

Accessibility & contrast

On white

9.32
#4C339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C339B
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C339B#FFFFFF#000000##FFFFFF
##4C339B1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#304D62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c339b;
/* rgb */ color: rgb(76, 51, 155);
/* oklch */ color: oklch(41.4% 0.160 288.4);
Tailwind
colors: {
  custom: {
    50: '#856cb9',
    500: '#4c339b',
    950: '#000000',
  },
}
SCSS
$custom: #4c339b;
$custom-light: #856cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c339b",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 254.423,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41365,
    "c": 0.16038,
    "h": 288.4
  },
  "luminance": 0.06271
}

Semantic roles & 50–950 ramp

primary
#4C339B
secondary
#A8BA6F
accent
#DA4EB8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C339B

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

Preview Lab → · Contrast checker → · Palette generator →

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