#4222A7#4222A7

#4222A7 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.194 H 284.0°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4222A7
RGBrgb(66, 34, 167)
HSLhsl(254, 66%, 39%)
HSVhsv(254, 80%, 65%)
CMYKcmyk(60.5%, 79.6%, 0%, 34.5%)
CIE-LABlab(26.99, 49.07, -65.46)
CIE-LCHlch(26.99, 81.81, 306.86°)
OKLaboklab(39.28% 0.0469 -0.1887)
OKLCHoklch(39.28% 0.194 284)
XYZxyz(9.7917, 5.0917, 37.0185)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222A7 #87A722
analogous
#2245A7 #4222A7 #8522A7
triadic
#4222A7 #A74222 #22A742
tetradic
#4222A7 #A72245 #87A722 #22A785
square
#4222A7 #A72245 #87A722 #22A785
split-complementary
#4222A7 #A78522 #45A722
monochromatic
#1A0D41 #2E1874 #4222A7 #5931D5 #8264DF

Accessibility & contrast

On white

10.40
#4222A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4222A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222A7
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222A7#FFFFFF#000000##FFFFFF
##4222A71.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4222a7;
/* rgb */ color: rgb(66, 34, 167);
/* oklch */ color: oklch(39.3% 0.194 284.0);
Tailwind
colors: {
  custom: {
    50: '#8362c2',
    500: '#4222a7',
    950: '#000000',
  },
}
SCSS
$custom: #4222a7;
$custom-light: #8362c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4222a7",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 254.436,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39277,
    "c": 0.19445,
    "h": 284
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4222A7

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

Preview Lab → · Contrast checker → · Palette generator →

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