#4C2397#4C2397

#4C2397 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.175 H 292.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#4C2397
RGBrgb(76, 35, 151)
HSLhsl(261, 62%, 36%)
HSVhsv(261, 77%, 59%)
CMYKcmyk(49.7%, 76.8%, 0%, 40.8%)
CIE-LABlab(26.66, 45.42, -56.23)
CIE-LCHlch(26.66, 72.29, 308.93°)
OKLaboklab(38.82% 0.0664 -0.1614)
OKLCHoklch(38.82% 0.175 292.4)
XYZxyz(9.1659, 4.9726, 29.7490)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2397 #6E9723
analogous
#233497 #4C2397 #862397
triadic
#4C2397 #974C23 #23974C
tetradic
#4C2397 #972334 #6E9723 #239786
square
#4C2397 #972334 #6E9723 #239786
split-complementary
#4C2397 #978623 #349723
monochromatic
#1A0C34 #331765 #4C2397 #652FC9 #885BD9

Accessibility & contrast

On white

10.53
#4C2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2397
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2397#FFFFFF#000000##FFFFFF
##4C23971.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.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: #4c2397;
/* rgb */ color: rgb(76, 35, 151);
/* oklch */ color: oklch(38.8% 0.175 292.4);
Tailwind
colors: {
  custom: {
    50: '#8663b7',
    500: '#4c2397',
    950: '#000000',
  },
}
SCSS
$custom: #4c2397;
$custom-light: #8663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2397",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 261.207,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38817,
    "c": 0.17452,
    "h": 292.4
  },
  "luminance": 0.04973
}

Semantic roles & 50–950 ramp

primary
#4C2397
secondary
#9ABE58
accent
#E542AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2397

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

Preview Lab → · Contrast checker → · Palette generator →

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