#4C339E#4C339E

#4C339E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.164 H 287.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4C339E
RGBrgb(76, 51, 158)
HSLhsl(254, 51%, 41%)
HSVhsv(254, 68%, 62%)
CMYKcmyk(51.9%, 67.7%, 0%, 38%)
CIE-LABlab(30.33, 38.93, -54.49)
CIE-LCHlch(30.33, 66.97, 305.54°)
OKLaboklab(41.62% 0.0502 -0.1564)
OKLCHoklch(41.62% 0.164 287.8)
XYZxyz(10.3341, 6.3723, 33.0266)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C339E #859E33
analogous
#334F9E #4C339E #81339E
triadic
#4C339E #9E4C33 #339E4C
tetradic
#4C339E #9E334F #859E33 #339E81
square
#4C339E #9E334F #859E33 #339E81
split-complementary
#4C339E #9E8133 #4F9E33
monochromatic
#1F1541 #362470 #4C339E #664AC4 #8D78D3

Accessibility & contrast

On white

9.23
#4C339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C339E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C339E#FFFFFF#000000##FFFFFF
##4C339E1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#2E4E64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c339e;
/* rgb */ color: rgb(76, 51, 158);
/* oklch */ color: oklch(41.6% 0.164 287.8);
Tailwind
colors: {
  custom: {
    50: '#866cbc',
    500: '#4c339e',
    950: '#000000',
  },
}
SCSS
$custom: #4c339e;
$custom-light: #866cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c339e",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 254.019,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41622,
    "c": 0.16422,
    "h": 287.8
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#4C339E
secondary
#AABC71
accent
#DB4DBA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4C339E

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

Preview Lab → · Contrast checker → · Palette generator →

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