#4E22BC#4E22BC

#4E22BC is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.6% C 0.217 H 285.7°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4E22BC
RGBrgb(78, 34, 188)
HSLhsl(257, 69%, 44%)
HSVhsv(257, 82%, 74%)
CMYKcmyk(58.5%, 81.9%, 0%, 26.3%)
CIE-LABlab(30.39, 56.27, -72.38)
CIE-LCHlch(30.39, 91.68, 307.87°)
OKLaboklab(42.56% 0.0586 -0.2085)
OKLCHoklch(42.56% 0.217 285.7)
XYZxyz(12.7883, 6.3938, 48.1275)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E22BC #90BC22
analogous
#2243BC #4E22BC #9B22BC
triadic
#4E22BC #BC4E22 #22BC4E
tetradic
#4E22BC #BC2243 #90BC22 #22BC9B
square
#4E22BC #BC2243 #90BC22 #22BC9B
split-complementary
#4E22BC #BC9B22 #43BC22
monochromatic
#230F54 #381988 #4E22BC #6C3FDC #9473E6

Accessibility & contrast

On white

9.21
#4E22BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E22BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E22BC
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E22BC#FFFFFF#000000##FFFFFF
##4E22BC1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC0
Deuteranopia (green-blind)
#0043B9
Tritanopia (blue-blind)
#0E5171
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e22bc;
/* rgb */ color: rgb(78, 34, 188);
/* oklch */ color: oklch(42.6% 0.217 285.7);
Tailwind
colors: {
  custom: {
    50: '#8d64d2',
    500: '#4e22bc',
    950: '#000000',
  },
}
SCSS
$custom: #4e22bc;
$custom-light: #8d64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e22bc",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 188
  },
  "hsl": {
    "h": 257.143,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42562,
    "c": 0.21659,
    "h": 285.7
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#4E22BC
secondary
#B1CD6D
accent
#EC3CBA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #4E22BC

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

Preview Lab → · Contrast checker → · Palette generator →

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