#4A2188#4A2188

#4A2188 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.159 H 295.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4A2188
RGBrgb(74, 33, 136)
HSLhsl(264, 61%, 33%)
HSVhsv(264, 76%, 53%)
CMYKcmyk(45.6%, 75.7%, 0%, 46.7%)
CIE-LABlab(24.71, 41.93, -50.14)
CIE-LCHlch(24.71, 65.36, 309.90°)
OKLaboklab(36.97% 0.069 -0.1436)
OKLCHoklch(36.97% 0.159 295.7)
XYZxyz(7.8106, 4.3209, 23.7103)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2188 #5F8821
analogous
#212C88 #4A2188 #7D2188
triadic
#4A2188 #884A21 #21884A
tetradic
#4A2188 #88212C #5F8821 #21887D
square
#4A2188 #88212C #5F8821 #21887D
split-complementary
#4A2188 #887D21 #2C8821
monochromatic
#140925 #2F1557 #4A2188 #652DB9 #844FD4

Accessibility & contrast

On white

11.26
#4A2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4A2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2188
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2188#FFFFFF#000000##FFFFFF
##4A21881.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#393C53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a2188;
/* rgb */ color: rgb(74, 33, 136);
/* oklch */ color: oklch(37.0% 0.159 295.7);
Tailwind
colors: {
  custom: {
    50: '#8361ac',
    500: '#4a2188',
    950: '#000000',
  },
}
SCSS
$custom: #4a2188;
$custom-light: #8361ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2188",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 263.883,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3697,
    "c": 0.15931,
    "h": 295.7
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#4A2188
secondary
#8DB84D
accent
#E444A4
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2188

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

Preview Lab → · Contrast checker → · Palette generator →

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