#4C2D97#4C2D97

#4C2D97 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.163 H 290.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4C2D97
RGBrgb(76, 45, 151)
HSLhsl(258, 54%, 38%)
HSVhsv(258, 70%, 59%)
CMYKcmyk(49.7%, 70.2%, 0%, 40.8%)
CIE-LABlab(28.50, 40.24, -53.21)
CIE-LCHlch(28.50, 66.71, 307.10°)
OKLaboklab(40.13% 0.0572 -0.1526)
OKLCHoklch(40.13% 0.163 290.6)
XYZxyz(9.5032, 5.6473, 29.8615)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D97 #78972D
analogous
#2D4397 #4C2D97 #812D97
triadic
#4C2D97 #974C2D #2D974C
tetradic
#4C2D97 #972D43 #78972D #2D9781
square
#4C2D97 #972D43 #78972D #2D9781
split-complementary
#4C2D97 #97812D #43972D
monochromatic
#1D1139 #341F68 #4C2D97 #643CC5 #8A6BD3

Accessibility & contrast

On white

9.86
#4C2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D97
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D97#FFFFFF#000000##FFFFFF
##4C2D971.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#33485E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c2d97;
/* rgb */ color: rgb(76, 45, 151);
/* oklch */ color: oklch(40.1% 0.163 290.6);
Tailwind
colors: {
  custom: {
    50: '#8568b6',
    500: '#4c2d97',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d97;
$custom-light: #8568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d97",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 257.547,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40126,
    "c": 0.16296,
    "h": 290.6
  },
  "luminance": 0.05648
}

Semantic roles & 50–950 ramp

primary
#4C2D97
secondary
#A1BA66
accent
#DD4AB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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