#4E22A7#4E22A7

#4E22A7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.194 H 289.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4E22A7
RGBrgb(78, 34, 167)
HSLhsl(260, 66%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(53.3%, 79.6%, 0%, 34.5%)
CIE-LABlab(28.26, 50.57, -63.34)
CIE-LCHlch(28.26, 81.05, 308.60°)
OKLaboklab(40.45% 0.0655 -0.1821)
OKLCHoklch(40.45% 0.194 289.8)
XYZxyz(10.6869, 5.5533, 37.0605)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E22A7 #7BA722
analogous
#2238A7 #4E22A7 #9122A7
triadic
#4E22A7 #A74E22 #22A74E
tetradic
#4E22A7 #A72238 #7BA722 #22A791
square
#4E22A7 #A72238 #7BA722 #22A791
split-complementary
#4E22A7 #A79122 #38A722
monochromatic
#1F0D41 #361874 #4E22A7 #6731D5 #8D64DF

Accessibility & contrast

On white

9.95
#4E22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E22A7
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E22A7#FFFFFF#000000##FFFFFF
##4E22A71.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#2C4965
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e22a7;
/* rgb */ color: rgb(78, 34, 167);
/* oklch */ color: oklch(40.5% 0.194 289.8);
Tailwind
colors: {
  custom: {
    50: '#8a63c2',
    500: '#4e22a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e22a7;
$custom-light: #8a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e22a7",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 259.85,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40452,
    "c": 0.19355,
    "h": 289.8
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#4E22A7
secondary
#A3C560
accent
#E93FB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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