#4A228B#4A228B

#4A228B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.162 H 294.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4A228B
RGBrgb(74, 34, 139)
HSLhsl(263, 61%, 34%)
HSVhsv(263, 76%, 55%)
CMYKcmyk(46.8%, 75.5%, 0%, 45.5%)
CIE-LABlab(25.15, 42.26, -51.29)
CIE-LCHlch(25.15, 66.46, 309.48°)
OKLaboklab(37.36% 0.0673 -0.147)
OKLCHoklch(37.36% 0.162 294.6)
XYZxyz(8.0550, 4.4638, 24.8583)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A228B #638B22
analogous
#222F8B #4A228B #7F228B
triadic
#4A228B #8B4A22 #228B4A
tetradic
#4A228B #8B222F #638B22 #228B7F
square
#4A228B #8B222F #638B22 #228B7F
split-complementary
#4A228B #8B7F22 #2F8B22
monochromatic
#160A29 #30165A #4A228B #642EBC #8453D5

Accessibility & contrast

On white

11.09
#4A228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4A228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A228B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A228B#FFFFFF#000000##FFFFFF
##4A228B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#373E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a228b;
/* rgb */ color: rgb(74, 34, 139);
/* oklch */ color: oklch(37.4% 0.162 294.6);
Tailwind
colors: {
  custom: {
    50: '#8361ae',
    500: '#4a228b',
    950: '#000000',
  },
}
SCSS
$custom: #4a228b;
$custom-light: #8361ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a228b",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 262.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37365,
    "c": 0.16165,
    "h": 294.6
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#4A228B
secondary
#91B850
accent
#E444A7
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A228B

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

Preview Lab → · Contrast checker → · Palette generator →

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