#4A2189#4A2189

#4A2189 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.160 H 295.4°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4A2189
RGBrgb(74, 33, 137)
HSLhsl(264, 61%, 33%)
HSVhsv(264, 76%, 54%)
CMYKcmyk(46%, 75.9%, 0%, 46.3%)
CIE-LABlab(24.79, 42.20, -50.62)
CIE-LCHlch(24.79, 65.90, 309.82°)
OKLaboklab(37.06% 0.0688 -0.145)
OKLCHoklch(37.06% 0.16 295.4)
XYZxyz(7.8820, 4.3495, 24.0863)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2189 #608921
analogous
#212C89 #4A2189 #7E2189
triadic
#4A2189 #894A21 #21894A
tetradic
#4A2189 #89212C #608921 #21897E
square
#4A2189 #89212C #608921 #21897E
split-complementary
#4A2189 #897E21 #2C8921
monochromatic
#150926 #2F1558 #4A2189 #652DBA #8450D5

Accessibility & contrast

On white

11.23
#4A2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4A2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2189
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2189#FFFFFF#000000##FFFFFF
##4A21891.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#383C53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a2189;
/* rgb */ color: rgb(74, 33, 137);
/* oklch */ color: oklch(37.1% 0.160 295.4);
Tailwind
colors: {
  custom: {
    50: '#8361ac',
    500: '#4a2189',
    950: '#000000',
  },
}
SCSS
$custom: #4a2189;
$custom-light: #8361ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2189",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 263.654,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3706,
    "c": 0.16047,
    "h": 295.4
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#4A2189
secondary
#8EB84E
accent
#E444A5
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2189

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

Preview Lab → · Contrast checker → · Palette generator →

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