#4A22A0#4A22A0

#4A22A0 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.186 H 289.3°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4A22A0
RGBrgb(74, 34, 160)
HSLhsl(259, 65%, 38%)
HSVhsv(259, 79%, 63%)
CMYKcmyk(53.7%, 78.8%, 0%, 37.3%)
CIE-LABlab(27.12, 48.10, -60.98)
CIE-LCHlch(27.12, 77.66, 308.27°)
OKLaboklab(39.35% 0.0615 -0.1753)
OKLCHoklch(39.35% 0.186 289.3)
XYZxyz(9.7394, 5.1375, 33.7293)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A22A0 #78A022
analogous
#2239A0 #4A22A0 #8922A0
triadic
#4A22A0 #A04A22 #22A04A
tetradic
#4A22A0 #A02239 #78A022 #22A089
square
#4A22A0 #A02239 #78A022 #22A089
split-complementary
#4A22A0 #A08922 #39A022
monochromatic
#1B0D3B #33176E #4A22A0 #612DD2 #875FDD

Accessibility & contrast

On white

10.36
#4A22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A22A0
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A22A0#FFFFFF#000000##FFFFFF
##4A22A01.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#294660
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a22a0;
/* rgb */ color: rgb(74, 34, 160);
/* oklch */ color: oklch(39.4% 0.186 289.3);
Tailwind
colors: {
  custom: {
    50: '#8662bd',
    500: '#4a22a0',
    950: '#000000',
  },
}
SCSS
$custom: #4a22a0;
$custom-light: #8662bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a22a0",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 259.048,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39352,
    "c": 0.18581,
    "h": 289.3
  },
  "luminance": 0.05138
}

Semantic roles & 50–950 ramp

primary
#4A22A0
secondary
#A2C25C
accent
#E840B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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