#221171#221171

#221171 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.150 H 279.1°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#221171
RGBrgb(34, 17, 113)
HSLhsl(251, 74%, 25%)
HSVhsv(251, 85%, 44%)
CMYKcmyk(69.9%, 85%, 0%, 55.7%)
CIE-LABlab(15.13, 37.38, -51.40)
CIE-LCHlch(15.13, 63.56, 306.02°)
OKLaboklab(28.52% 0.0237 -0.1484)
OKLCHoklch(28.52% 0.15 279.1)
XYZxyz(3.8398, 1.9329, 15.7903)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221171 #607111
analogous
#113071 #221171 #521171
triadic
#221171 #712211 #117122
tetradic
#221171 #711130 #607111 #117152
square
#221171 #711130 #607111 #117152
split-complementary
#221171 #715211 #307111
monochromatic
#08041B #12093C #221171 #3219A6 #4221DB

Accessibility & contrast

On white

15.14
#221171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#221171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221171
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221171#FFFFFF#000000##FFFFFF
##2211711.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #221171;
/* rgb */ color: rgb(34, 17, 113);
/* oklch */ color: oklch(28.5% 0.150 279.1);
Tailwind
colors: {
  custom: {
    50: '#6a539b',
    500: '#221171',
    950: '#000000',
  },
}
SCSS
$custom: #221171;
$custom-light: #6a539b;
$custom-dark: #000000;
JSON
{
  "hex": "#221171",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 250.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28519,
    "c": 0.15032,
    "h": 279.1
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#221171
secondary
#94A836
accent
#F137D0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #221171

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

Preview Lab → · Contrast checker → · Palette generator →

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