#4E22B1#4E22B1

#4E22B1 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.4% C 0.205 H 287.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4E22B1
RGBrgb(78, 34, 177)
HSLhsl(258, 68%, 41%)
HSVhsv(258, 81%, 69%)
CMYKcmyk(55.9%, 80.8%, 0%, 30.6%)
CIE-LABlab(29.25, 53.29, -67.70)
CIE-LCHlch(29.25, 86.16, 308.21°)
OKLaboklab(41.44% 0.0623 -0.1949)
OKLCHoklch(41.44% 0.205 287.7)
XYZxyz(11.6474, 5.9375, 42.1188)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E22B1 #85B122
analogous
#223DB1 #4E22B1 #9622B1
triadic
#4E22B1 #B14E22 #22B14E
tetradic
#4E22B1 #B1223D #85B122 #22B196
square
#4E22B1 #B1223D #85B122 #22B196
split-complementary
#4E22B1 #B19622 #3DB122
monochromatic
#210E4A #37187E #4E22B1 #6938D9 #906BE3

Accessibility & contrast

On white

9.60
#4E22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E22B1
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E22B1#FFFFFF#000000##FFFFFF
##4E22B11.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#0041AE
Tritanopia (blue-blind)
#224D6A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e22b1;
/* rgb */ color: rgb(78, 34, 177);
/* oklch */ color: oklch(41.4% 0.205 287.7);
Tailwind
colors: {
  custom: {
    50: '#8b64ca',
    500: '#4e22b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e22b1;
$custom-light: #8b64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e22b1",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 258.462,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41444,
    "c": 0.20459,
    "h": 287.7
  },
  "luminance": 0.05938
}

Semantic roles & 50–950 ramp

primary
#4E22B1
secondary
#AAC966
accent
#EB3DB5
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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