#4C22B4#4C22B4

#4C22B4 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.6% C 0.208 H 286.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4C22B4
RGBrgb(76, 34, 180)
HSLhsl(257, 68%, 42%)
HSVhsv(257, 81%, 71%)
CMYKcmyk(57.8%, 81.1%, 0%, 29.4%)
CIE-LABlab(29.35, 53.88, -69.34)
CIE-LCHlch(29.35, 87.81, 307.85°)
OKLaboklab(41.55% 0.0582 -0.1997)
OKLCHoklch(41.55% 0.208 286.2)
XYZxyz(11.7883, 5.9752, 43.7033)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C22B4 #8AB422
analogous
#2241B4 #4C22B4 #9522B4
triadic
#4C22B4 #B44C22 #22B44C
tetradic
#4C22B4 #B42241 #8AB422 #22B495
square
#4C22B4 #B42241 #8AB422 #22B495
split-complementary
#4C22B4 #B49522 #41B422
monochromatic
#210F4D #361881 #4C22B4 #683ADA #8F6DE3

Accessibility & contrast

On white

9.57
#4C22B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C22B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C22B4
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C22B4#FFFFFF#000000##FFFFFF
##4C22B41.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#164E6C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c22b4;
/* rgb */ color: rgb(76, 34, 180);
/* oklch */ color: oklch(41.6% 0.208 286.2);
Tailwind
colors: {
  custom: {
    50: '#8b64cc',
    500: '#4c22b4',
    950: '#000000',
  },
}
SCSS
$custom: #4c22b4;
$custom-light: #8b64cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c22b4",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 257.26,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41552,
    "c": 0.20803,
    "h": 286.2
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#4C22B4
secondary
#AECA68
accent
#EB3DB9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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