#4A2198#4A2198

#4A2198 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.178 H 291.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4A2198
RGBrgb(74, 33, 152)
HSLhsl(261, 64%, 36%)
HSVhsv(261, 78%, 60%)
CMYKcmyk(51.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(26.19, 46.34, -57.63)
CIE-LCHlch(26.19, 73.95, 308.81°)
OKLaboklab(38.46% 0.0646 -0.1655)
OKLCHoklch(38.46% 0.178 291.3)
XYZxyz(9.0338, 4.8102, 30.1521)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2198 #6F9821
analogous
#213498 #4A2198 #862198
triadic
#4A2198 #984A21 #21984A
tetradic
#4A2198 #982134 #6F9821 #219886
square
#4A2198 #982134 #6F9821 #219886
split-complementary
#4A2198 #988621 #349821
monochromatic
#190B33 #321666 #4A2198 #622CCA #8559DB

Accessibility & contrast

On white

10.70
#4A2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4A2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2198
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2198#FFFFFF#000000##FFFFFF
##4A21981.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#2F425C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2198;
/* rgb */ color: rgb(74, 33, 152);
/* oklch */ color: oklch(38.5% 0.178 291.3);
Tailwind
colors: {
  custom: {
    50: '#8561b7',
    500: '#4a2198',
    950: '#000000',
  },
}
SCSS
$custom: #4a2198;
$custom-light: #8561b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2198",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 260.672,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38464,
    "c": 0.1777,
    "h": 291.3
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#4A2198
secondary
#9BBF56
accent
#E740AE
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A2198

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

Preview Lab → · Contrast checker → · Palette generator →

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