#4C2398#4C2398

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

Color values

HEX#4C2398
RGBrgb(76, 35, 152)
HSLhsl(261, 63%, 37%)
HSVhsv(261, 77%, 60%)
CMYKcmyk(50%, 77%, 0%, 40.4%)
CIE-LABlab(26.75, 45.70, -56.69)
CIE-LCHlch(26.75, 72.82, 308.87°)
OKLaboklab(38.91% 0.0661 -0.1627)
OKLCHoklch(38.91% 0.176 292.1)
XYZxyz(9.2474, 5.0052, 30.1785)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2398 #6F9823
analogous
#233498 #4C2398 #872398
triadic
#4C2398 #984C23 #23984C
tetradic
#4C2398 #982334 #6F9823 #239887
square
#4C2398 #982334 #6F9823 #239887
split-complementary
#4C2398 #988723 #349823
monochromatic
#1A0C35 #331866 #4C2398 #652ECA #885CD9

Accessibility & contrast

On white

10.49
#4C2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2398
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2398#FFFFFF#000000##FFFFFF
##4C23981.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#33435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2398;
/* rgb */ color: rgb(76, 35, 152);
/* oklch */ color: oklch(38.9% 0.176 292.1);
Tailwind
colors: {
  custom: {
    50: '#8663b7',
    500: '#4c2398',
    950: '#000000',
  },
}
SCSS
$custom: #4c2398;
$custom-light: #8663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2398",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 261.026,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38911,
    "c": 0.17567,
    "h": 292.1
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#4C2398
secondary
#9BBE59
accent
#E642AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2398

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

Preview Lab → · Contrast checker → · Palette generator →

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