#4C22B1#4C22B1

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

Color values

HEX#4C22B1
RGBrgb(76, 34, 177)
HSLhsl(258, 68%, 41%)
HSVhsv(258, 81%, 69%)
CMYKcmyk(57.1%, 80.8%, 0%, 30.6%)
CIE-LABlab(29.04, 53.05, -68.06)
CIE-LCHlch(29.04, 86.29, 307.94°)
OKLaboklab(41.25% 0.0592 -0.196)
OKLCHoklch(41.25% 0.205 286.8)
XYZxyz(11.4860, 5.8542, 42.1112)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C22B1 #87B122
analogous
#2240B1 #4C22B1 #9422B1
triadic
#4C22B1 #B14C22 #22B14C
tetradic
#4C22B1 #B12240 #87B122 #22B194
square
#4C22B1 #B12240 #87B122 #22B194
split-complementary
#4C22B1 #B19422 #40B122
monochromatic
#200E4A #36187E #4C22B1 #6738D9 #8E6BE3

Accessibility & contrast

On white

9.67
#4C22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C22B1
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C22B1#FFFFFF#000000##FFFFFF
##4C22B11.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#0040AE
Tritanopia (blue-blind)
#1B4D6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c22b1;
/* rgb */ color: rgb(76, 34, 177);
/* oklch */ color: oklch(41.2% 0.205 286.8);
Tailwind
colors: {
  custom: {
    50: '#8a64ca',
    500: '#4c22b1',
    950: '#000000',
  },
}
SCSS
$custom: #4c22b1;
$custom-light: #8a64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c22b1",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 257.622,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41247,
    "c": 0.20472,
    "h": 286.8
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

primary
#4C22B1
secondary
#ACC966
accent
#EB3DB8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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