#4A228D#4A228D

#4A228D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.164 H 294.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#4A228D
RGBrgb(74, 34, 141)
HSLhsl(262, 61%, 34%)
HSVhsv(262, 76%, 55%)
CMYKcmyk(47.5%, 75.9%, 0%, 44.7%)
CIE-LABlab(25.33, 42.81, -52.24)
CIE-LCHlch(25.33, 67.54, 309.34°)
OKLaboklab(37.55% 0.0668 -0.1497)
OKLCHoklch(37.55% 0.164 294.1)
XYZxyz(8.2025, 4.5227, 25.6349)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A228D #658D22
analogous
#22308D #4A228D #80228D
triadic
#4A228D #8D4A22 #228D4A
tetradic
#4A228D #8D2230 #658D22 #228D80
square
#4A228D #8D2230 #658D22 #228D80
split-complementary
#4A228D #8D8022 #308D22
monochromatic
#160A2A #30165C #4A228D #642EBE #8454D6

Accessibility & contrast

On white

11.03
#4A228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4A228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A228D
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A228D#FFFFFF#000000##FFFFFF
##4A228D1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#363E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a228d;
/* rgb */ color: rgb(74, 34, 141);
/* oklch */ color: oklch(37.5% 0.164 294.1);
Tailwind
colors: {
  custom: {
    50: '#8361af',
    500: '#4a228d',
    950: '#000000',
  },
}
SCSS
$custom: #4a228d;
$custom-light: #8361af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a228d",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 262.43,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37548,
    "c": 0.16398,
    "h": 294.1
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

primary
#4A228D
secondary
#93B951
accent
#E444A8
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A228D

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

Preview Lab → · Contrast checker → · Palette generator →

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