#4C2A98#4C2A98

#4C2A98 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.168 H 290.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#4C2A98
RGBrgb(76, 42, 152)
HSLhsl(259, 57%, 38%)
HSVhsv(259, 72%, 60%)
CMYKcmyk(50%, 72.4%, 0%, 40.4%)
CIE-LABlab(28.00, 42.16, -54.64)
CIE-LCHlch(28.00, 69.01, 307.65°)
OKLaboklab(39.8% 0.0599 -0.1568)
OKLCHoklch(39.8% 0.168 290.9)
XYZxyz(9.4743, 5.4591, 30.2542)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A98 #76982A
analogous
#2A3F98 #4C2A98 #832A98
triadic
#4C2A98 #984C2A #2A984C
tetradic
#4C2A98 #982A3F #76982A #2A9883
square
#4C2A98 #982A3F #76982A #2A9883
split-complementary
#4C2A98 #98832A #3F982A
monochromatic
#1C1038 #341D68 #4C2A98 #6437C8 #8967D5

Accessibility & contrast

On white

10.04
#4C2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A98
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A98#FFFFFF#000000##FFFFFF
##4C2A981.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#33475E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2a98;
/* rgb */ color: rgb(76, 42, 152);
/* oklch */ color: oklch(39.8% 0.168 290.9);
Tailwind
colors: {
  custom: {
    50: '#8667b7',
    500: '#4c2a98',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a98;
$custom-light: #8667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a98",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 258.545,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.16783,
    "h": 290.9
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#4C2A98
secondary
#A0BB62
accent
#E048B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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