#4221B2#4221B2

#4221B2 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.3% C 0.208 H 282.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#4221B2
RGBrgb(66, 33, 178)
HSLhsl(254, 69%, 41%)
HSVhsv(254, 81%, 70%)
CMYKcmyk(62.9%, 81.5%, 0%, 30.2%)
CIE-LABlab(28.01, 52.68, -70.40)
CIE-LCHlch(28.01, 87.93, 306.81°)
OKLaboklab(40.32% 0.044 -0.2031)
OKLCHoklch(40.32% 0.208 282.2)
XYZxyz(10.8240, 5.4595, 42.5943)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4221B2 #91B221
analogous
#2149B2 #4221B2 #8B21B2
triadic
#4221B2 #B24221 #21B242
tetradic
#4221B2 #B22149 #91B221 #21B28B
square
#4221B2 #B22149 #91B221 #21B28B
split-complementary
#4221B2 #B28B21 #49B221
monochromatic
#1C0E4B #2F177E #4221B2 #5C36DA #866AE3

Accessibility & contrast

On white

10.04
#4221B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4221B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4221B2
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4221B2#FFFFFF#000000##FFFFFF
##4221B21.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4221b2;
/* rgb */ color: rgb(66, 33, 178);
/* oklch */ color: oklch(40.3% 0.208 282.2);
Tailwind
colors: {
  custom: {
    50: '#8562ca',
    500: '#4221b2',
    950: '#000000',
  },
}
SCSS
$custom: #4221b2;
$custom-light: #8562ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4221b2",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 253.655,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40324,
    "c": 0.20779,
    "h": 282.2
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#4221B2
secondary
#B3C966
accent
#EC3CC4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0513
muted
#7D7A82

Preview Lab

Preview with #4221B2

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

Preview Lab → · Contrast checker → · Palette generator →

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