#4C2A97#4C2A97

#4C2A97 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.167 H 291.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4C2A97
RGBrgb(76, 42, 151)
HSLhsl(259, 56%, 38%)
HSVhsv(259, 72%, 59%)
CMYKcmyk(49.7%, 72.2%, 0%, 40.8%)
CIE-LABlab(27.92, 41.87, -54.17)
CIE-LCHlch(27.92, 68.46, 307.70°)
OKLaboklab(39.71% 0.0601 -0.1554)
OKLCHoklch(39.71% 0.167 291.2)
XYZxyz(9.3928, 5.4264, 29.8247)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A97 #75972A
analogous
#2A3E97 #4C2A97 #832A97
triadic
#4C2A97 #974C2A #2A974C
tetradic
#4C2A97 #972A3E #75972A #2A9783
square
#4C2A97 #972A3E #75972A #2A9783
split-complementary
#4C2A97 #97832A #3E972A
monochromatic
#1C0F37 #341D67 #4C2A97 #6437C7 #8967D5

Accessibility & contrast

On white

10.07
#4C2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A97
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A97#FFFFFF#000000##FFFFFF
##4C2A971.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#33465D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2a97;
/* rgb */ color: rgb(76, 42, 151);
/* oklch */ color: oklch(39.7% 0.167 291.2);
Tailwind
colors: {
  custom: {
    50: '#8667b7',
    500: '#4c2a97',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a97;
$custom-light: #8667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a97",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 258.716,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39707,
    "c": 0.16661,
    "h": 291.2
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#4C2A97
secondary
#9FBB62
accent
#E048B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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