#4222BA#4222BA

#4222BA is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.3% C 0.216 H 280.9°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4222BA
RGBrgb(66, 34, 186)
HSLhsl(253, 69%, 43%)
HSVhsv(253, 82%, 73%)
CMYKcmyk(64.5%, 81.7%, 0%, 27.1%)
CIE-LABlab(29.02, 54.51, -73.48)
CIE-LCHlch(29.02, 91.49, 306.57°)
OKLaboklab(41.28% 0.0409 -0.2121)
OKLCHoklch(41.28% 0.216 280.9)
XYZxyz(11.6789, 5.8466, 46.9579)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222BA #9ABA22
analogous
#224EBA #4222BA #8E22BA
triadic
#4222BA #BA4222 #22BA42
tetradic
#4222BA #BA224E #9ABA22 #22BA8E
square
#4222BA #BA224E #9ABA22 #22BA8E
split-complementary
#4222BA #BA8E22 #4EBA22
monochromatic
#1D0F53 #301986 #4222BA #5F3EDC #8A71E5

Accessibility & contrast

On white

9.68
#4222BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4222BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222BA
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222BA#FFFFFF#000000##FFFFFF
##4222BA1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BE
Deuteranopia (green-blind)
#003FB7
Tritanopia (blue-blind)
#005170
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4222ba;
/* rgb */ color: rgb(66, 34, 186);
/* oklch */ color: oklch(41.3% 0.216 280.9);
Tailwind
colors: {
  custom: {
    50: '#8763d0',
    500: '#4222ba',
    950: '#000000',
  },
}
SCSS
$custom: #4222ba;
$custom-light: #8763d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4222ba",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 186
  },
  "hsl": {
    "h": 252.632,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41281,
    "c": 0.21598,
    "h": 280.9
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#4222BA
secondary
#B8CC6C
accent
#EC3CC7
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4222BA

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

Preview Lab → · Contrast checker → · Palette generator →

#4222BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva