#4A228A#4A228A

#4A228A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.160 H 294.9°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#4A228A
RGBrgb(74, 34, 138)
HSLhsl(263, 60%, 34%)
HSVhsv(263, 75%, 54%)
CMYKcmyk(46.4%, 75.4%, 0%, 45.9%)
CIE-LABlab(25.06, 41.98, -50.81)
CIE-LCHlch(25.06, 65.91, 309.56°)
OKLaboklab(37.27% 0.0676 -0.1456)
OKLCHoklch(37.27% 0.16 294.9)
XYZxyz(7.9823, 4.4347, 24.4752)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A228A #628A22
analogous
#222E8A #4A228A #7E228A
triadic
#4A228A #8A4A22 #228A4A
tetradic
#4A228A #8A222E #628A22 #228A7E
square
#4A228A #8A222E #628A22 #228A7E
split-complementary
#4A228A #8A7E22 #2E8A22
monochromatic
#150A28 #301659 #4A228A #642EBB #8452D4

Accessibility & contrast

On white

11.13
#4A228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A228A
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A228A#FFFFFF#000000##FFFFFF
##4A228A1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#383D54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a228a;
/* rgb */ color: rgb(74, 34, 138);
/* oklch */ color: oklch(37.3% 0.160 294.9);
Tailwind
colors: {
  custom: {
    50: '#8361ad',
    500: '#4a228a',
    950: '#000000',
  },
}
SCSS
$custom: #4a228a;
$custom-light: #8361ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a228a",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 263.077,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37274,
    "c": 0.16048,
    "h": 294.9
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#4A228A
secondary
#90B850
accent
#E444A6
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A228A

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

Preview Lab → · Contrast checker → · Palette generator →

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