#4C339F#4C339F

#4C339F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.165 H 287.6°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4C339F
RGBrgb(76, 51, 159)
HSLhsl(254, 51%, 41%)
HSVhsv(254, 68%, 62%)
CMYKcmyk(52.2%, 67.9%, 0%, 37.6%)
CIE-LABlab(30.42, 39.23, -54.96)
CIE-LCHlch(30.42, 67.53, 305.52°)
OKLaboklab(41.71% 0.05 -0.1577)
OKLCHoklch(41.71% 0.165 287.6)
XYZxyz(10.4205, 6.4069, 33.4817)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C339F #869F33
analogous
#33509F #4C339F #82339F
triadic
#4C339F #9F4C33 #339F4C
tetradic
#4C339F #9F3350 #869F33 #339F82
square
#4C339F #9F3350 #869F33 #339F82
split-complementary
#4C339F #9F8233 #509F33
monochromatic
#201542 #362471 #4C339F #674AC5 #8E79D4

Accessibility & contrast

On white

9.20
#4C339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4C339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C339F
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C339F#FFFFFF#000000##FFFFFF
##4C339F1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#2D4E64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c339f;
/* rgb */ color: rgb(76, 51, 159);
/* oklch */ color: oklch(41.7% 0.165 287.6);
Tailwind
colors: {
  custom: {
    50: '#866cbc',
    500: '#4c339f',
    950: '#000000',
  },
}
SCSS
$custom: #4c339f;
$custom-light: #866cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c339f",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 253.889,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41708,
    "c": 0.16549,
    "h": 287.6
  },
  "luminance": 0.06407
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C339F

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

Preview Lab → · Contrast checker → · Palette generator →

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