#4E22A9#4E22A9

#4E22A9 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.196 H 289.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4E22A9
RGBrgb(78, 34, 169)
HSLhsl(260, 67%, 40%)
HSVhsv(260, 80%, 66%)
CMYKcmyk(53.8%, 79.9%, 0%, 33.7%)
CIE-LABlab(28.45, 51.11, -64.22)
CIE-LCHlch(28.45, 82.08, 308.52°)
OKLaboklab(40.65% 0.0649 -0.1847)
OKLCHoklch(40.65% 0.196 289.4)
XYZxyz(10.8733, 5.6278, 38.0418)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E22A9 #7DA922
analogous
#2239A9 #4E22A9 #9222A9
triadic
#4E22A9 #A94E22 #22A94E
tetradic
#4E22A9 #A92239 #7DA922 #22A992
square
#4E22A9 #A92239 #7DA922 #22A992
split-complementary
#4E22A9 #A99222 #39A922
monochromatic
#1F0D43 #361876 #4E22A9 #6832D6 #8D65E0

Accessibility & contrast

On white

9.88
#4E22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E22A9
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E22A9#FFFFFF#000000##FFFFFF
##4E22A91.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#2A4966
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e22a9;
/* rgb */ color: rgb(78, 34, 169);
/* oklch */ color: oklch(40.6% 0.196 289.4);
Tailwind
colors: {
  custom: {
    50: '#8a63c4',
    500: '#4e22a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e22a9;
$custom-light: #8a63c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e22a9",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 259.556,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40648,
    "c": 0.19577,
    "h": 289.4
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#4E22A9
secondary
#A5C561
accent
#E93EB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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