#4C22A0#4C22A0

#4C22A0 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.186 H 290.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4C22A0
RGBrgb(76, 34, 160)
HSLhsl(260, 65%, 38%)
HSVhsv(260, 79%, 63%)
CMYKcmyk(52.5%, 78.8%, 0%, 37.3%)
CIE-LABlab(27.35, 48.38, -60.60)
CIE-LCHlch(27.35, 77.54, 308.60°)
OKLaboklab(39.56% 0.0646 -0.1742)
OKLCHoklch(39.56% 0.186 290.3)
XYZxyz(9.8959, 5.2182, 33.7367)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C22A0 #76A022
analogous
#2237A0 #4C22A0 #8B22A0
triadic
#4C22A0 #A04C22 #22A04C
tetradic
#4C22A0 #A02237 #76A022 #22A08B
square
#4C22A0 #A02237 #76A022 #22A08B
split-complementary
#4C22A0 #A08B22 #37A022
monochromatic
#1C0D3B #34176E #4C22A0 #642DD2 #895FDD

Accessibility & contrast

On white

10.27
#4C22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C22A0
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C22A0#FFFFFF#000000##FFFFFF
##4C22A01.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#2D4660
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c22a0;
/* rgb */ color: rgb(76, 34, 160);
/* oklch */ color: oklch(39.6% 0.186 290.3);
Tailwind
colors: {
  custom: {
    50: '#8763bd',
    500: '#4c22a0',
    950: '#000000',
  },
}
SCSS
$custom: #4c22a0;
$custom-light: #8763bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c22a0",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 260,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39561,
    "c": 0.18576,
    "h": 290.3
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#4C22A0
secondary
#A0C25C
accent
#E840B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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