#4221A7#4221A7

#4221A7 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.195 H 284.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4221A7
RGBrgb(66, 33, 167)
HSLhsl(255, 67%, 39%)
HSVhsv(255, 80%, 65%)
CMYKcmyk(60.5%, 80.2%, 0%, 34.5%)
CIE-LABlab(26.84, 49.53, -65.72)
CIE-LCHlch(26.84, 82.30, 307.00°)
OKLaboklab(39.17% 0.0475 -0.1894)
OKLCHoklch(39.17% 0.195 284.1)
XYZxyz(9.7635, 5.0353, 37.0092)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4221A7 #86A721
analogous
#2143A7 #4221A7 #8521A7
triadic
#4221A7 #A74221 #21A742
tetradic
#4221A7 #A72143 #86A721 #21A785
square
#4221A7 #A72143 #86A721 #21A785
split-complementary
#4221A7 #A78521 #43A721
monochromatic
#1A0D41 #2E1774 #4221A7 #582FD6 #8162E0

Accessibility & contrast

On white

10.46
#4221A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4221A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4221A7
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4221A7#FFFFFF#000000##FFFFFF
##4221A71.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4221a7;
/* rgb */ color: rgb(66, 33, 167);
/* oklch */ color: oklch(39.2% 0.195 284.1);
Tailwind
colors: {
  custom: {
    50: '#8362c2',
    500: '#4221a7',
    950: '#000000',
  },
}
SCSS
$custom: #4221a7;
$custom-light: #8362c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4221a7",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 254.776,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39166,
    "c": 0.19532,
    "h": 284.1
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#4221A7
secondary
#ACC55F
accent
#EA3EC0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4221A7

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

Preview Lab → · Contrast checker → · Palette generator →

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