#4C2297#4C2297

#4C2297 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.176 H 292.5°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4C2297
RGBrgb(76, 34, 151)
HSLhsl(262, 63%, 36%)
HSVhsv(262, 77%, 59%)
CMYKcmyk(49.7%, 77.5%, 0%, 40.8%)
CIE-LABlab(26.49, 45.90, -56.51)
CIE-LCHlch(26.49, 72.80, 309.09°)
OKLaboklab(38.7% 0.0672 -0.1622)
OKLCHoklch(38.7% 0.176 292.5)
XYZxyz(9.1369, 4.9146, 29.7394)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2297 #6D9722
analogous
#223397 #4C2297 #872297
triadic
#4C2297 #974C22 #22974C
tetradic
#4C2297 #972233 #6D9722 #229787
square
#4C2297 #972233 #6D9722 #229787
split-complementary
#4C2297 #978722 #339722
monochromatic
#1A0C33 #331765 #4C2297 #652DC9 #885ADA

Accessibility & contrast

On white

10.59
#4C2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2297
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2297#FFFFFF#000000##FFFFFF
##4C22971.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#34425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2297;
/* rgb */ color: rgb(76, 34, 151);
/* oklch */ color: oklch(38.7% 0.176 292.5);
Tailwind
colors: {
  custom: {
    50: '#8662b7',
    500: '#4c2297',
    950: '#000000',
  },
}
SCSS
$custom: #4c2297;
$custom-light: #8662b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2297",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 261.538,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38701,
    "c": 0.17557,
    "h": 292.5
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

primary
#4C2297
secondary
#99BE57
accent
#E642AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2297

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

Preview Lab → · Contrast checker → · Palette generator →

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