#4C298E#4C298E

#4C298E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.157 H 293.6°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4C298E
RGBrgb(76, 41, 142)
HSLhsl(261, 55%, 36%)
HSVhsv(261, 71%, 56%)
CMYKcmyk(46.5%, 71.1%, 0%, 44.3%)
CIE-LABlab(26.95, 39.82, -50.21)
CIE-LCHlch(26.95, 64.08, 308.42°)
OKLaboklab(38.78% 0.0629 -0.1437)
OKLCHoklch(38.78% 0.157 293.6)
XYZxyz(8.6546, 5.0751, 26.1095)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C298E #6B8E29
analogous
#29388E #4C298E #7E298E
triadic
#4C298E #8E4C29 #298E4C
tetradic
#4C298E #8E2938 #6B8E29 #298E7E
square
#4C298E #8E2938 #6B8E29 #298E7E
split-complementary
#4C298E #8E7E29 #388E29
monochromatic
#190E2F #331B5F #4C298E #6537BD #8760D1

Accessibility & contrast

On white

10.42
#4C298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C298E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C298E#FFFFFF#000000##FFFFFF
##4C298E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#394258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c298e;
/* rgb */ color: rgb(76, 41, 142);
/* oklch */ color: oklch(38.8% 0.157 293.6);
Tailwind
colors: {
  custom: {
    50: '#8466b0',
    500: '#4c298e',
    950: '#000000',
  },
}
SCSS
$custom: #4c298e;
$custom-light: #8466b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c298e",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 260.792,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38777,
    "c": 0.1569,
    "h": 293.6
  },
  "luminance": 0.05075
}

Semantic roles & 50–950 ramp

primary
#4C298E
secondary
#97B75C
accent
#DF49AB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4C298E

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

Preview Lab → · Contrast checker → · Palette generator →

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