#4A229E#4A229E

#4A229E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.184 H 289.8°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4A229E
RGBrgb(74, 34, 158)
HSLhsl(259, 65%, 38%)
HSVhsv(259, 78%, 62%)
CMYKcmyk(53.2%, 78.5%, 0%, 38%)
CIE-LABlab(26.93, 47.54, -60.08)
CIE-LCHlch(26.93, 76.61, 308.36°)
OKLaboklab(39.16% 0.0621 -0.1727)
OKLCHoklch(39.16% 0.184 289.8)
XYZxyz(9.5658, 5.0681, 32.8153)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A229E #769E22
analogous
#22389E #4A229E #88229E
triadic
#4A229E #9E4A22 #229E4A
tetradic
#4A229E #9E2238 #769E22 #229E88
square
#4A229E #9E2238 #769E22 #229E88
split-complementary
#4A229E #9E8822 #389E22
monochromatic
#1B0C39 #32176C #4A229E #622DD0 #875EDC

Accessibility & contrast

On white

10.43
#4A229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4A229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A229E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A229E#FFFFFF#000000##FFFFFF
##4A229E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#2A455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a229e;
/* rgb */ color: rgb(74, 34, 158);
/* oklch */ color: oklch(39.2% 0.184 289.8);
Tailwind
colors: {
  custom: {
    50: '#8662bc',
    500: '#4a229e',
    950: '#000000',
  },
}
SCSS
$custom: #4a229e;
$custom-light: #8662bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a229e",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 259.355,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39157,
    "c": 0.18354,
    "h": 289.8
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#4A229E
secondary
#A0C15B
accent
#E840B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A229E

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

Preview Lab → · Contrast checker → · Palette generator →

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