#4A226A#4A226A

#4A226A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.122 H 306.6°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4A226A
RGBrgb(74, 34, 106)
HSLhsl(273, 51%, 27%)
HSVhsv(273, 68%, 42%)
CMYKcmyk(30.2%, 67.9%, 0%, 58.4%)
CIE-LABlab(22.45, 33.34, -34.71)
CIE-LCHlch(22.45, 48.12, 313.85°)
OKLaboklab(34.59% 0.073 -0.0982)
OKLCHoklch(34.59% 0.122 306.6)
XYZxyz(5.9970, 3.6406, 14.0196)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A226A #426A22
analogous
#26226A #4A226A #6A2266
triadic
#4A226A #6A4A22 #226A4A
tetradic
#4A226A #6A2622 #426A22 #22666A
square
#4A226A #6A2622 #426A22 #22666A
split-complementary
#4A226A #666A22 #226A26
monochromatic
#100717 #2A133C #4A226A #6A3198 #8A44C3

Accessibility & contrast

On white

12.15
#4A226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4A226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A226A
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A226A#FFFFFF#000000##FFFFFF
##4A226A1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#123668
Tritanopia (blue-blind)
#453142
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a226a;
/* rgb */ color: rgb(74, 34, 106);
/* oklch */ color: oklch(34.6% 0.122 306.6);
Tailwind
colors: {
  custom: {
    50: '#7f6095',
    500: '#4a226a',
    950: '#000000',
  },
}
SCSS
$custom: #4a226a;
$custom-light: #7f6095;
$custom-dark: #000000;
JSON
{
  "hex": "#4a226a",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 273.333,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34591,
    "c": 0.12236,
    "h": 306.6
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#4A226A
secondary
#6F9E4A
accent
#DB4D8C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A226A

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

Preview Lab → · Contrast checker → · Palette generator →

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