#4A2197#4A2197

#4A2197 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.177 H 291.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4A2197
RGBrgb(74, 33, 151)
HSLhsl(261, 64%, 36%)
HSVhsv(261, 78%, 59%)
CMYKcmyk(51%, 78.1%, 0%, 40.8%)
CIE-LABlab(26.09, 46.06, -57.17)
CIE-LCHlch(26.09, 73.42, 308.86°)
OKLaboklab(38.37% 0.0649 -0.1642)
OKLCHoklch(38.37% 0.177 291.6)
XYZxyz(8.9522, 4.7776, 29.7226)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2197 #6E9721
analogous
#213397 #4A2197 #852197
triadic
#4A2197 #974A21 #21974A
tetradic
#4A2197 #972133 #6E9721 #219785
square
#4A2197 #972133 #6E9721 #219785
split-complementary
#4A2197 #978521 #339721
monochromatic
#190B33 #311665 #4A2197 #632CC9 #8558DA

Accessibility & contrast

On white

10.74
#4A2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2197
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2197#FFFFFF#000000##FFFFFF
##4A21971.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#30425B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2197;
/* rgb */ color: rgb(74, 33, 151);
/* oklch */ color: oklch(38.4% 0.177 291.6);
Tailwind
colors: {
  custom: {
    50: '#8561b7',
    500: '#4a2197',
    950: '#000000',
  },
}
SCSS
$custom: #4a2197;
$custom-light: #8561b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2197",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 260.847,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38368,
    "c": 0.17656,
    "h": 291.6
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#4A2197
secondary
#9ABE55
accent
#E741AD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A2197

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

Preview Lab → · Contrast checker → · Palette generator →

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