#4A22A6#4A22A6

#4A22A6 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.193 H 288.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4A22A6
RGBrgb(74, 34, 166)
HSLhsl(258, 66%, 39%)
HSVhsv(258, 80%, 65%)
CMYKcmyk(55.4%, 79.5%, 0%, 34.9%)
CIE-LABlab(27.72, 49.77, -63.64)
CIE-LCHlch(27.72, 80.79, 308.03°)
OKLaboklab(39.94% 0.0596 -0.1831)
OKLCHoklch(39.94% 0.193 288)
XYZxyz(10.2770, 5.3525, 36.5606)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A22A6 #7EA622
analogous
#223CA6 #4A22A6 #8C22A6
triadic
#4A22A6 #A64A22 #22A64A
tetradic
#4A22A6 #A6223C #7EA622 #22A68C
square
#4A22A6 #A6223C #7EA622 #22A68C
split-complementary
#4A22A6 #A68C22 #3CA622
monochromatic
#1D0D40 #331873 #4A22A6 #6230D5 #8963DF

Accessibility & contrast

On white

10.14
#4A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4A22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A22A6
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A22A6#FFFFFF#000000##FFFFFF
##4A22A61.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#234964
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a22a6;
/* rgb */ color: rgb(74, 34, 166);
/* oklch */ color: oklch(39.9% 0.193 288.0);
Tailwind
colors: {
  custom: {
    50: '#8763c2',
    500: '#4a22a6',
    950: '#000000',
  },
}
SCSS
$custom: #4a22a6;
$custom-light: #8763c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a22a6",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 258.182,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39944,
    "c": 0.19259,
    "h": 288
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#4A22A6
secondary
#A6C45F
accent
#E93FB5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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