#4C2498#4C2498

#4C2498 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.175 H 292.0°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4C2498
RGBrgb(76, 36, 152)
HSLhsl(261, 62%, 37%)
HSVhsv(261, 76%, 60%)
CMYKcmyk(50%, 76.3%, 0%, 40.4%)
CIE-LABlab(26.92, 45.22, -56.42)
CIE-LCHlch(26.92, 72.30, 308.71°)
OKLaboklab(39.03% 0.0653 -0.1619)
OKLCHoklch(39.03% 0.175 292)
XYZxyz(9.2773, 5.0649, 30.1885)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2498 #709824
analogous
#243698 #4C2498 #862498
triadic
#4C2498 #984C24 #24984C
tetradic
#4C2498 #982436 #709824 #249886
square
#4C2498 #982436 #709824 #249886
split-complementary
#4C2498 #988624 #369824
monochromatic
#1B0D35 #331867 #4C2498 #6530C9 #885ED9

Accessibility & contrast

On white

10.43
#4C2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2498
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2498#FFFFFF#000000##FFFFFF
##4C24981.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#33445C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2498;
/* rgb */ color: rgb(76, 36, 152);
/* oklch */ color: oklch(39.0% 0.175 292.0);
Tailwind
colors: {
  custom: {
    50: '#8663b7',
    500: '#4c2498',
    950: '#000000',
  },
}
SCSS
$custom: #4c2498;
$custom-light: #8663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2498",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 260.69,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3903,
    "c": 0.17461,
    "h": 292
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

primary
#4C2498
secondary
#9BBE5A
accent
#E543AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2498

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

Preview Lab → · Contrast checker → · Palette generator →

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