#4C2F9E#4C2F9E

#4C2F9E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.169 H 288.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4C2F9E
RGBrgb(76, 47, 158)
HSLhsl(256, 54%, 40%)
HSVhsv(256, 70%, 62%)
CMYKcmyk(51.9%, 70.3%, 0%, 38%)
CIE-LABlab(29.51, 41.20, -55.84)
CIE-LCHlch(29.51, 69.39, 306.42°)
OKLaboklab(41.03% 0.0541 -0.1603)
OKLCHoklch(41.03% 0.169 288.6)
XYZxyz(10.1668, 6.0377, 32.9708)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F9E #819E2F
analogous
#2F499E #4C2F9E #842F9E
triadic
#4C2F9E #9E4C2F #2F9E4C
tetradic
#4C2F9E #9E2F49 #819E2F #2F9E84
square
#4C2F9E #9E2F49 #819E2F #2F9E84
split-complementary
#4C2F9E #9E842F #499E2F
monochromatic
#1F1340 #35216F #4C2F9E #6643C7 #8C72D5

Accessibility & contrast

On white

9.51
#4C2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4C2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F9E
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F9E#FFFFFF#000000##FFFFFF
##4C2F9E1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#2E4B63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2f9e;
/* rgb */ color: rgb(76, 47, 158);
/* oklch */ color: oklch(41.0% 0.169 288.6);
Tailwind
colors: {
  custom: {
    50: '#866abc',
    500: '#4c2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f9e;
$custom-light: #866abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f9e",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 255.676,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4103,
    "c": 0.16918,
    "h": 288.6
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#4C2F9E
secondary
#A8BD6C
accent
#DE4AB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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