#4A228C#4A228C

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

Color values

HEX#4A228C
RGBrgb(74, 34, 140)
HSLhsl(263, 61%, 34%)
HSVhsv(263, 76%, 55%)
CMYKcmyk(47.1%, 75.7%, 0%, 45.1%)
CIE-LABlab(25.24, 42.53, -51.77)
CIE-LCHlch(25.24, 67.00, 309.41°)
OKLaboklab(37.46% 0.0671 -0.1483)
OKLCHoklch(37.46% 0.163 294.3)
XYZxyz(8.1284, 4.4931, 25.2448)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A228C #648C22
analogous
#222F8C #4A228C #7F228C
triadic
#4A228C #8C4A22 #228C4A
tetradic
#4A228C #8C222F #648C22 #228C7F
square
#4A228C #8C222F #648C22 #228C7F
split-complementary
#4A228C #8C7F22 #2F8C22
monochromatic
#160A2A #30165B #4A228C #642EBD #8453D5

Accessibility & contrast

On white

11.06
#4A228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A228C
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A228C#FFFFFF#000000##FFFFFF
##4A228C1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a228c;
/* rgb */ color: rgb(74, 34, 140);
/* oklch */ color: oklch(37.5% 0.163 294.3);
Tailwind
colors: {
  custom: {
    50: '#8361af',
    500: '#4a228c',
    950: '#000000',
  },
}
SCSS
$custom: #4a228c;
$custom-light: #8361af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a228c",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 262.642,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37457,
    "c": 0.16281,
    "h": 294.3
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A228C

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

Preview Lab → · Contrast checker → · Palette generator →

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