#4222A6#4222A6

#4222A6 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.193 H 284.1°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4222A6
RGBrgb(66, 34, 166)
HSLhsl(255, 66%, 39%)
HSVhsv(255, 80%, 65%)
CMYKcmyk(60.2%, 79.5%, 0%, 34.9%)
CIE-LABlab(26.89, 48.78, -65.03)
CIE-LCHlch(26.89, 81.29, 306.88°)
OKLaboklab(39.17% 0.0472 -0.1874)
OKLCHoklch(39.17% 0.193 284.1)
XYZxyz(9.6996, 5.0548, 36.5336)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222A6 #86A622
analogous
#2244A6 #4222A6 #8422A6
triadic
#4222A6 #A64222 #22A642
tetradic
#4222A6 #A62244 #86A622 #22A684
square
#4222A6 #A62244 #86A622 #22A684
split-complementary
#4222A6 #A68422 #44A622
monochromatic
#1A0D40 #2E1873 #4222A6 #5830D5 #8163DF

Accessibility & contrast

On white

10.44
#4222A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4222A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222A6
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222A6#FFFFFF#000000##FFFFFF
##4222A61.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4222a6;
/* rgb */ color: rgb(66, 34, 166);
/* oklch */ color: oklch(39.2% 0.193 284.1);
Tailwind
colors: {
  custom: {
    50: '#8362c2',
    500: '#4222a6',
    950: '#000000',
  },
}
SCSS
$custom: #4222a6;
$custom-light: #8362c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4222a6",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 254.545,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39173,
    "c": 0.19329,
    "h": 284.1
  },
  "luminance": 0.05055
}

Semantic roles & 50–950 ramp

primary
#4222A6
secondary
#ACC45F
accent
#E93FC0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4222A6

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

Preview Lab → · Contrast checker → · Palette generator →

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