#4E22A8#4E22A8

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

Color values

HEX#4E22A8
RGBrgb(78, 34, 168)
HSLhsl(260, 66%, 40%)
HSVhsv(260, 80%, 66%)
CMYKcmyk(53.6%, 79.8%, 0%, 34.1%)
CIE-LABlab(28.35, 50.84, -63.78)
CIE-LCHlch(28.35, 81.56, 308.56°)
OKLaboklab(40.55% 0.0652 -0.1834)
OKLCHoklch(40.55% 0.195 289.6)
XYZxyz(10.7797, 5.5904, 37.5493)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E22A8 #7CA822
analogous
#2239A8 #4E22A8 #9122A8
triadic
#4E22A8 #A84E22 #22A84E
tetradic
#4E22A8 #A82239 #7CA822 #22A891
square
#4E22A8 #A82239 #7CA822 #22A891
split-complementary
#4E22A8 #A89122 #39A822
monochromatic
#1F0D42 #361875 #4E22A8 #6732D5 #8D65E0

Accessibility & contrast

On white

9.91
#4E22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E22A8
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E22A8#FFFFFF#000000##FFFFFF
##4E22A81.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#2B4965
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e22a8;
/* rgb */ color: rgb(78, 34, 168);
/* oklch */ color: oklch(40.6% 0.195 289.6);
Tailwind
colors: {
  custom: {
    50: '#8a63c3',
    500: '#4e22a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e22a8;
$custom-light: #8a63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e22a8",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 259.701,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4055,
    "c": 0.19466,
    "h": 289.6
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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