#4C298F#4C298F

#4C298F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.158 H 293.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4C298F
RGBrgb(76, 41, 143)
HSLhsl(261, 55%, 36%)
HSVhsv(261, 71%, 56%)
CMYKcmyk(46.9%, 71.3%, 0%, 43.9%)
CIE-LABlab(27.03, 40.11, -50.69)
CIE-LCHlch(27.03, 64.64, 308.36°)
OKLaboklab(38.86% 0.0627 -0.1451)
OKLCHoklch(38.86% 0.158 293.4)
XYZxyz(8.7300, 5.1053, 26.5067)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C298F #6C8F29
analogous
#29398F #4C298F #7F298F
triadic
#4C298F #8F4C29 #298F4C
tetradic
#4C298F #8F2939 #6C8F29 #298F7F
square
#4C298F #8F2939 #6C8F29 #298F7F
split-complementary
#4C298F #8F7F29 #398F29
monochromatic
#190E30 #331B5F #4C298F #6537BF #8761D2

Accessibility & contrast

On white

10.39
#4C298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C298F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C298F#FFFFFF#000000##FFFFFF
##4C298F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#384359
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c298f;
/* rgb */ color: rgb(76, 41, 143);
/* oklch */ color: oklch(38.9% 0.158 293.4);
Tailwind
colors: {
  custom: {
    50: '#8466b1',
    500: '#4c298f',
    950: '#000000',
  },
}
SCSS
$custom: #4c298f;
$custom-light: #8466b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c298f",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 260.588,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38864,
    "c": 0.15812,
    "h": 293.4
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#4C298F
secondary
#98B75C
accent
#DF49AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C298F

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

Preview Lab → · Contrast checker → · Palette generator →

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