#4C2997#4C2997

#4C2997 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.168 H 291.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4C2997
RGBrgb(76, 41, 151)
HSLhsl(259, 57%, 38%)
HSVhsv(259, 73%, 59%)
CMYKcmyk(49.7%, 72.8%, 0%, 40.8%)
CIE-LABlab(27.73, 42.40, -54.48)
CIE-LCHlch(27.73, 69.03, 307.89°)
OKLaboklab(39.57% 0.0611 -0.1563)
OKLCHoklch(39.57% 0.168 291.3)
XYZxyz(9.3578, 5.3564, 29.8130)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2997 #749729
analogous
#293D97 #4C2997 #832997
triadic
#4C2997 #974C29 #29974C
tetradic
#4C2997 #97293D #749729 #299783
square
#4C2997 #97293D #749729 #299783
split-complementary
#4C2997 #978329 #3D9729
monochromatic
#1C0F37 #341C67 #4C2997 #6436C7 #8965D5

Accessibility & contrast

On white

10.14
#4C2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2997
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2997#FFFFFF#000000##FFFFFF
##4C29971.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#33465D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c2997;
/* rgb */ color: rgb(76, 41, 151);
/* oklch */ color: oklch(39.6% 0.168 291.3);
Tailwind
colors: {
  custom: {
    50: '#8666b7',
    500: '#4c2997',
    950: '#000000',
  },
}
SCSS
$custom: #4c2997;
$custom-light: #8666b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2997",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 259.091,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39573,
    "c": 0.1678,
    "h": 291.3
  },
  "luminance": 0.05357
}

Semantic roles & 50–950 ramp

primary
#4C2997
secondary
#9EBB61
accent
#E147B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2997

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

Preview Lab → · Contrast checker → · Palette generator →

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