#4A229A#4A229A

#4A229A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.179 H 290.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4A229A
RGBrgb(74, 34, 154)
HSLhsl(260, 64%, 37%)
HSVhsv(260, 78%, 60%)
CMYKcmyk(51.9%, 77.9%, 0%, 39.6%)
CIE-LABlab(26.54, 46.43, -58.27)
CIE-LCHlch(26.54, 74.50, 308.55°)
OKLaboklab(38.77% 0.0633 -0.1674)
OKLCHoklch(38.77% 0.179 290.7)
XYZxyz(9.2271, 4.9326, 31.0315)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A229A #729A22
analogous
#22369A #4A229A #86229A
triadic
#4A229A #9A4A22 #229A4A
tetradic
#4A229A #9A2236 #729A22 #229A86
square
#4A229A #9A2236 #729A22 #229A86
split-complementary
#4A229A #9A8622 #369A22
monochromatic
#1A0C36 #321768 #4A229A #622DCC #865BDB

Accessibility & contrast

On white

10.57
#4A229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4A229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A229A
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A229A#FFFFFF#000000##FFFFFF
##4A229A1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#2E445D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a229a;
/* rgb */ color: rgb(74, 34, 154);
/* oklch */ color: oklch(38.8% 0.179 290.7);
Tailwind
colors: {
  custom: {
    50: '#8562b9',
    500: '#4a229a',
    950: '#000000',
  },
}
SCSS
$custom: #4a229a;
$custom-light: #8562b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a229a",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 260,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3877,
    "c": 0.17898,
    "h": 290.7
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#4A229A
secondary
#9DBF58
accent
#E741B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A229A

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

Preview Lab → · Contrast checker → · Palette generator →

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