#4C2497#4C2497

#4C2497 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.173 H 292.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4C2497
RGBrgb(76, 36, 151)
HSLhsl(261, 61%, 37%)
HSVhsv(261, 76%, 59%)
CMYKcmyk(49.7%, 76.2%, 0%, 40.8%)
CIE-LABlab(26.83, 44.94, -55.95)
CIE-LCHlch(26.83, 71.77, 308.77°)
OKLaboklab(38.94% 0.0656 -0.1606)
OKLCHoklch(38.94% 0.173 292.2)
XYZxyz(9.1957, 5.0323, 29.7590)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2497 #6F9724
analogous
#243597 #4C2497 #862497
triadic
#4C2497 #974C24 #24974C
tetradic
#4C2497 #972435 #6F9724 #249786
square
#4C2497 #972435 #6F9724 #249786
split-complementary
#4C2497 #978624 #359724
monochromatic
#1A0C34 #331866 #4C2497 #6530C8 #885DD8

Accessibility & contrast

On white

10.47
#4C2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2497
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2497#FFFFFF#000000##FFFFFF
##4C24971.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#34435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2497;
/* rgb */ color: rgb(76, 36, 151);
/* oklch */ color: oklch(38.9% 0.173 292.2);
Tailwind
colors: {
  custom: {
    50: '#8663b7',
    500: '#4c2497',
    950: '#000000',
  },
}
SCSS
$custom: #4c2497;
$custom-light: #8663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2497",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 260.87,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38937,
    "c": 0.17345,
    "h": 292.2
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#4C2497
secondary
#9BBD5A
accent
#E543AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2497

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

Preview Lab → · Contrast checker → · Palette generator →

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