#4E22A1#4E22A1

#4E22A1 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.187 H 291.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4E22A1
RGBrgb(78, 34, 161)
HSLhsl(261, 65%, 38%)
HSVhsv(261, 79%, 63%)
CMYKcmyk(51.6%, 78.9%, 0%, 36.9%)
CIE-LABlab(27.67, 48.93, -60.66)
CIE-LCHlch(27.67, 77.94, 308.89°)
OKLaboklab(39.87% 0.0674 -0.1743)
OKLCHoklch(39.87% 0.187 291.1)
XYZxyz(10.1451, 5.3366, 34.2068)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E22A1 #75A122
analogous
#2236A1 #4E22A1 #8D22A1
triadic
#4E22A1 #A14E22 #22A14E
tetradic
#4E22A1 #A12236 #75A122 #22A18D
square
#4E22A1 #A12236 #75A122 #22A18D
split-complementary
#4E22A1 #A18D22 #36A122
monochromatic
#1D0D3C #36176E #4E22A1 #672DD3 #8B60DD

Accessibility & contrast

On white

10.16
#4E22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E22A1
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E22A1#FFFFFF#000000##FFFFFF
##4E22A11.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#314661
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e22a1;
/* rgb */ color: rgb(78, 34, 161);
/* oklch */ color: oklch(39.9% 0.187 291.1);
Tailwind
colors: {
  custom: {
    50: '#8963be',
    500: '#4e22a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e22a1;
$custom-light: #8963be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e22a1",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 260.787,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39869,
    "c": 0.18688,
    "h": 291.1
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#4E22A1
secondary
#9FC25D
accent
#E840AE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4E22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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