#4A228E#4A228E

#4A228E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.165 H 293.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4A228E
RGBrgb(74, 34, 142)
HSLhsl(262, 61%, 35%)
HSVhsv(262, 76%, 56%)
CMYKcmyk(47.9%, 76.1%, 0%, 44.3%)
CIE-LABlab(25.42, 43.09, -52.71)
CIE-LCHlch(25.42, 68.08, 309.26°)
OKLaboklab(37.64% 0.0666 -0.1511)
OKLCHoklch(37.64% 0.165 293.8)
XYZxyz(8.2772, 4.5526, 26.0286)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A228E #668E22
analogous
#22308E #4A228E #80228E
triadic
#4A228E #8E4A22 #228E4A
tetradic
#4A228E #8E2230 #668E22 #228E80
square
#4A228E #8E2230 #668E22 #228E80
split-complementary
#4A228E #8E8022 #308E22
monochromatic
#170A2B #30165D #4A228E #642EBF #8454D6

Accessibility & contrast

On white

10.99
#4A228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A228E
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A228E#FFFFFF#000000##FFFFFF
##4A228E1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#363F56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a228e;
/* rgb */ color: rgb(74, 34, 142);
/* oklch */ color: oklch(37.6% 0.165 293.8);
Tailwind
colors: {
  custom: {
    50: '#8461b0',
    500: '#4a228e',
    950: '#000000',
  },
}
SCSS
$custom: #4a228e;
$custom-light: #8461b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a228e",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 262.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3764,
    "c": 0.16514,
    "h": 293.8
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#4A228E
secondary
#93BA52
accent
#E443A9
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #4A228E

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

Preview Lab → · Contrast checker → · Palette generator →

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