#4222AC#4222AC

#4222AC is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 39.8% C 0.200 H 283.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4222AC
RGBrgb(66, 34, 172)
HSLhsl(254, 67%, 40%)
HSVhsv(254, 80%, 67%)
CMYKcmyk(61.6%, 80.2%, 0%, 32.5%)
CIE-LABlab(27.52, 50.51, -67.61)
CIE-LCHlch(27.52, 84.39, 306.76°)
OKLaboklab(39.8% 0.0454 -0.195)
OKLCHoklch(39.8% 0.2 283.1)
XYZxyz(10.2629, 5.2802, 39.5001)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222AC #8CAC22
analogous
#2247AC #4222AC #8722AC
triadic
#4222AC #AC4222 #22AC42
tetradic
#4222AC #AC2247 #8CAC22 #22AC87
square
#4222AC #AC2247 #8CAC22 #22AC87
split-complementary
#4222AC #AC8722 #47AC22
monochromatic
#1B0E46 #2E1879 #4222AC #5A34D7 #8467E1

Accessibility & contrast

On white

10.21
#4222AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4222AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222AC
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222AC#FFFFFF#000000##FFFFFF
##4222AC1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B0
Deuteranopia (green-blind)
#003CAA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4222ac;
/* rgb */ color: rgb(66, 34, 172);
/* oklch */ color: oklch(39.8% 0.200 283.1);
Tailwind
colors: {
  custom: {
    50: '#8462c6',
    500: '#4222ac',
    950: '#000000',
  },
}
SCSS
$custom: #4222ac;
$custom-light: #8462c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4222ac",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 253.913,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.20017,
    "h": 283.1
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#4222AC
secondary
#B0C763
accent
#EA3EC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4222AC

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

Preview Lab → · Contrast checker → · Palette generator →

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