#4022C2#4022C2

#4022C2 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 42.0% C 0.225 H 279.0°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4022C2
RGBrgb(64, 34, 194)
HSLhsl(251, 70%, 45%)
HSVhsv(251, 82%, 76%)
CMYKcmyk(67%, 82.5%, 0%, 23.9%)
CIE-LABlab(29.73, 56.61, -77.03)
CIE-LCHlch(29.73, 95.60, 306.31°)
OKLaboklab(41.99% 0.0354 -0.2224)
OKLCHoklch(41.99% 0.225 279)
XYZxyz(12.4209, 6.1280, 51.5567)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022C2 #A4C222
analogous
#2254C2 #4022C2 #9022C2
triadic
#4022C2 #C24022 #22C240
tetradic
#4022C2 #C22254 #A4C222 #22C290
square
#4022C2 #C22254 #A4C222 #22C290
split-complementary
#4022C2 #C29022 #54C222
monochromatic
#1E105A #2F198E #4022C2 #6043DE #8C77E7

Accessibility & contrast

On white

9.43
#4022C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4022C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022C2
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022C2#FFFFFF#000000##FFFFFF
##4022C21.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC6
Deuteranopia (green-blind)
#0040BF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4022c2;
/* rgb */ color: rgb(64, 34, 194);
/* oklch */ color: oklch(42.0% 0.225 279.0);
Tailwind
colors: {
  custom: {
    50: '#8864d6',
    500: '#4022c2',
    950: '#000000',
  },
}
SCSS
$custom: #4022c2;
$custom-light: #8864d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4022c2",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 194
  },
  "hsl": {
    "h": 251.25,
    "s": 70.175,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41987,
    "c": 0.22525,
    "h": 279
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#4022C2
secondary
#BDCF71
accent
#ED3BCC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #4022C2

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

Preview Lab → · Contrast checker → · Palette generator →

#4022C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva