#422161#422161

#422161 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.7% C 0.110 H 304.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#422161
RGBrgb(66, 33, 97)
HSLhsl(271, 49%, 25%)
HSVhsv(271, 66%, 38%)
CMYKcmyk(32%, 66%, 0%, 62%)
CIE-LABlab(20.48, 29.47, -32.05)
CIE-LCHlch(20.48, 43.54, 312.60°)
OKLaboklab(32.71% 0.063 -0.0907)
OKLCHoklch(32.71% 0.11 304.8)
XYZxyz(4.9478, 3.1091, 11.6464)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422161 #406121
analogous
#222161 #422161 #612160
triadic
#422161 #614221 #216142
tetradic
#422161 #612221 #406121 #216061
square
#422161 #612221 #406121 #216061
split-complementary
#422161 #606121 #216122
monochromatic
#100817 #231133 #422161 #61318F #8040BC

Accessibility & contrast

On white

12.95
#422161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#422161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422161
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422161#FFFFFF#000000##FFFFFF
##4221611.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003063
Deuteranopia (green-blind)
#123160
Tritanopia (blue-blind)
#3C2E3D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #422161;
/* rgb */ color: rgb(66, 33, 97);
/* oklch */ color: oklch(32.7% 0.110 304.8);
Tailwind
colors: {
  custom: {
    50: '#795e8e',
    500: '#422161',
    950: '#000000',
  },
}
SCSS
$custom: #422161;
$custom-light: #795e8e;
$custom-dark: #000000;
JSON
{
  "hex": "#422161",
  "rgb": {
    "r": 66,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 270.938,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32713,
    "c": 0.11042,
    "h": 304.8
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#422161
secondary
#6E9549
accent
#D94F92
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #422161

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

Preview Lab → · Contrast checker → · Palette generator →

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