#4A22A9#4A22A9

#4A22A9 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.196 H 287.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4A22A9
RGBrgb(74, 34, 169)
HSLhsl(258, 67%, 40%)
HSVhsv(258, 80%, 66%)
CMYKcmyk(56.2%, 79.9%, 0%, 33.7%)
CIE-LABlab(28.02, 50.60, -64.95)
CIE-LCHlch(28.02, 82.34, 307.92°)
OKLaboklab(40.24% 0.0587 -0.187)
OKLCHoklch(40.24% 0.196 287.4)
XYZxyz(10.5554, 5.4639, 38.0269)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A22A9 #81A922
analogous
#223DA9 #4A22A9 #8E22A9
triadic
#4A22A9 #A94A22 #22A94A
tetradic
#4A22A9 #A9223D #81A922 #22A98E
square
#4A22A9 #A9223D #81A922 #22A98E
split-complementary
#4A22A9 #A98E22 #3DA922
monochromatic
#1D0D43 #341876 #4A22A9 #6332D6 #8A65E0

Accessibility & contrast

On white

10.03
#4A22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4A22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A22A9
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A22A9#FFFFFF#000000##FFFFFF
##4A22A91.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#1F4A66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a22a9;
/* rgb */ color: rgb(74, 34, 169);
/* oklch */ color: oklch(40.2% 0.196 287.4);
Tailwind
colors: {
  custom: {
    50: '#8863c4',
    500: '#4a22a9',
    950: '#000000',
  },
}
SCSS
$custom: #4a22a9;
$custom-light: #8863c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a22a9",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 257.778,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40244,
    "c": 0.19596,
    "h": 287.4
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#4A22A9
secondary
#A8C561
accent
#E93EB7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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