#422271#422271

#422271 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.129 H 297.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#422271
RGBrgb(66, 34, 113)
HSLhsl(264, 54%, 29%)
HSVhsv(264, 70%, 44%)
CMYKcmyk(41.6%, 69.9%, 0%, 55.7%)
CIE-LABlab(21.92, 33.37, -40.13)
CIE-LCHlch(21.92, 52.19, 309.74°)
OKLaboklab(34.15% 0.0602 -0.1145)
OKLCHoklch(34.15% 0.129 297.7)
XYZxyz(5.7987, 3.4945, 15.9886)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422271 #517122
analogous
#222A71 #422271 #6A2271
triadic
#422271 #714222 #227142
tetradic
#422271 #71222A #517122 #22716A
square
#422271 #71222A #517122 #22716A
split-complementary
#422271 #716A22 #2A7122
monochromatic
#0E0718 #271442 #422271 #5D30A0 #7A46C7

Accessibility & contrast

On white

12.36
#422271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#422271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422271
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422271#FFFFFF#000000##FFFFFF
##4222711.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#373546
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #422271;
/* rgb */ color: rgb(66, 34, 113);
/* oklch */ color: oklch(34.2% 0.129 297.7);
Tailwind
colors: {
  custom: {
    50: '#7b5f9a',
    500: '#422271',
    950: '#000000',
  },
}
SCSS
$custom: #422271;
$custom-light: #7b5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#422271",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 264.304,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34152,
    "c": 0.12931,
    "h": 297.7
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#422271
secondary
#80A44A
accent
#DD4BA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #422271

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

Preview Lab → · Contrast checker → · Palette generator →

#422271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva