#4E22A6#4E22A6

#4E22A6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.192 H 290.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4E22A6
RGBrgb(78, 34, 166)
HSLhsl(260, 66%, 39%)
HSVhsv(260, 80%, 65%)
CMYKcmyk(53%, 79.5%, 0%, 34.9%)
CIE-LABlab(28.16, 50.30, -62.89)
CIE-LCHlch(28.16, 80.53, 308.65°)
OKLaboklab(40.35% 0.0659 -0.1808)
OKLCHoklch(40.35% 0.192 290)
XYZxyz(10.5949, 5.5165, 36.5755)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E22A6 #7AA622
analogous
#2238A6 #4E22A6 #9022A6
triadic
#4E22A6 #A64E22 #22A64E
tetradic
#4E22A6 #A62238 #7AA622 #22A690
square
#4E22A6 #A62238 #7AA622 #22A690
split-complementary
#4E22A6 #A69022 #38A622
monochromatic
#1E0D40 #361873 #4E22A6 #6730D5 #8D63DF

Accessibility & contrast

On white

9.98
#4E22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E22A6
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E22A6#FFFFFF#000000##FFFFFF
##4E22A61.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#2D4864
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e22a6;
/* rgb */ color: rgb(78, 34, 166);
/* oklch */ color: oklch(40.4% 0.192 290.0);
Tailwind
colors: {
  custom: {
    50: '#8963c2',
    500: '#4e22a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e22a6;
$custom-light: #8963c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e22a6",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 260,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40354,
    "c": 0.19245,
    "h": 290
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#4E22A6
secondary
#A3C45F
accent
#E93FB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4E22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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