#4C2F9A#4C2F9A

#4C2F9A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.164 H 289.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4C2F9A
RGBrgb(76, 47, 154)
HSLhsl(256, 53%, 39%)
HSVhsv(256, 69%, 60%)
CMYKcmyk(50.6%, 69.5%, 0%, 39.6%)
CIE-LABlab(29.16, 40.01, -53.97)
CIE-LCHlch(29.16, 67.18, 306.55°)
OKLaboklab(40.68% 0.0547 -0.1548)
OKLCHoklch(40.68% 0.164 289.5)
XYZxyz(9.8281, 5.9022, 31.1870)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F9A #7D9A2F
analogous
#2F479A #4C2F9A #822F9A
triadic
#4C2F9A #9A4C2F #2F9A4C
tetradic
#4C2F9A #9A2F47 #7D9A2F #2F9A82
square
#4C2F9A #9A2F47 #7D9A2F #2F9A82
split-complementary
#4C2F9A #9A822F #479A2F
monochromatic
#1E123C #35216B #4C2F9A #6541C5 #8B70D3

Accessibility & contrast

On white

9.63
#4C2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4C2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F9A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F9A#FFFFFF#000000##FFFFFF
##4C2F9A1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#314A60
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2f9a;
/* rgb */ color: rgb(76, 47, 154);
/* oklch */ color: oklch(40.7% 0.164 289.5);
Tailwind
colors: {
  custom: {
    50: '#866ab9',
    500: '#4c2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f9a;
$custom-light: #866ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f9a",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 256.262,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40678,
    "c": 0.1642,
    "h": 289.5
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#4C2F9A
secondary
#A5BB6A
accent
#DD4BB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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