#4A22B4#4A22B4

#4A22B4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.4% C 0.208 H 285.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4A22B4
RGBrgb(74, 34, 180)
HSLhsl(256, 68%, 42%)
HSVhsv(256, 81%, 71%)
CMYKcmyk(58.9%, 81.1%, 0%, 29.4%)
CIE-LABlab(29.14, 53.65, -69.69)
CIE-LCHlch(29.14, 87.95, 307.59°)
OKLaboklab(41.36% 0.0551 -0.2008)
OKLCHoklch(41.36% 0.208 285.3)
XYZxyz(11.6318, 5.8945, 43.6960)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A22B4 #8CB422
analogous
#2243B4 #4A22B4 #9322B4
triadic
#4A22B4 #B44A22 #22B44A
tetradic
#4A22B4 #B42243 #8CB422 #22B493
square
#4A22B4 #B42243 #8CB422 #22B493
split-complementary
#4A22B4 #B49322 #43B422
monochromatic
#200F4D #351881 #4A22B4 #653ADA #8D6DE3

Accessibility & contrast

On white

9.64
#4A22B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4A22B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A22B4
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A22B4#FFFFFF#000000##FFFFFF
##4A22B41.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#0A4E6C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a22b4;
/* rgb */ color: rgb(74, 34, 180);
/* oklch */ color: oklch(41.4% 0.208 285.3);
Tailwind
colors: {
  custom: {
    50: '#8a64cc',
    500: '#4a22b4',
    950: '#000000',
  },
}
SCSS
$custom: #4a22b4;
$custom-light: #8a64cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a22b4",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 256.438,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41361,
    "c": 0.20821,
    "h": 285.3
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#4A22B4
secondary
#AFCA68
accent
#EB3DBB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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