#4A227E#4A227E

#4A227E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.146 H 298.7°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#4A227E
RGBrgb(74, 34, 126)
HSLhsl(266, 58%, 31%)
HSVhsv(266, 73%, 49%)
CMYKcmyk(41.3%, 73%, 0%, 50.6%)
CIE-LABlab(24.02, 38.68, -44.97)
CIE-LCHlch(24.02, 59.32, 310.70°)
OKLaboklab(36.22% 0.0702 -0.1284)
OKLCHoklch(36.22% 0.146 298.7)
XYZxyz(7.1610, 4.1062, 20.1499)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A227E #567E22
analogous
#22287E #4A227E #78227E
triadic
#4A227E #7E4A22 #227E4A
tetradic
#4A227E #7E2228 #567E22 #227E78
square
#4A227E #7E2228 #567E22 #227E78
split-complementary
#4A227E #7E7822 #287E22
monochromatic
#11081E #2E154E #4A227E #662FAE #854CCF

Accessibility & contrast

On white

11.53
#4A227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A227E
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A227E#FFFFFF#000000##FFFFFF
##4A227E1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#3E394D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a227e;
/* rgb */ color: rgb(74, 34, 126);
/* oklch */ color: oklch(36.2% 0.146 298.7);
Tailwind
colors: {
  custom: {
    50: '#8261a4',
    500: '#4a227e',
    950: '#000000',
  },
}
SCSS
$custom: #4a227e;
$custom-light: #8261a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a227e",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 266.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36215,
    "c": 0.14635,
    "h": 298.7
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#4A227E
secondary
#85B14B
accent
#E1479E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A227E

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

Preview Lab → · Contrast checker → · Palette generator →

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