#221172#221172

#221172 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.152 H 278.9°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#221172
RGBrgb(34, 17, 114)
HSLhsl(251, 74%, 26%)
HSVhsv(251, 85%, 45%)
CMYKcmyk(70.2%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.25, 37.69, -51.85)
CIE-LCHlch(15.25, 64.10, 306.02°)
OKLaboklab(28.64% 0.0233 -0.1497)
OKLCHoklch(28.64% 0.152 278.9)
XYZxyz(3.8964, 1.9556, 16.0884)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221172 #617211
analogous
#113172 #221172 #521172
triadic
#221172 #722211 #117222
tetradic
#221172 #721131 #617211 #117252
square
#221172 #721131 #617211 #117252
split-complementary
#221172 #725211 #317211
monochromatic
#08041B #12093D #221172 #3219A7 #4221DD

Accessibility & contrast

On white

15.09
#221172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221172
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221172#FFFFFF#000000##FFFFFF
##2211721.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #221172;
/* rgb */ color: rgb(34, 17, 114);
/* oklch */ color: oklch(28.6% 0.152 278.9);
Tailwind
colors: {
  custom: {
    50: '#6b539c',
    500: '#221172',
    950: '#000000',
  },
}
SCSS
$custom: #221172;
$custom-light: #6b539c;
$custom-dark: #000000;
JSON
{
  "hex": "#221172",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 250.515,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28638,
    "c": 0.15155,
    "h": 278.9
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#221172
secondary
#95A936
accent
#F137D0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #221172

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

Preview Lab → · Contrast checker → · Palette generator →

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