#221071#221071

#221071 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.151 H 279.2°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#221071
RGBrgb(34, 16, 113)
HSLhsl(251, 75%, 25%)
HSVhsv(251, 86%, 44%)
CMYKcmyk(69.9%, 85.8%, 0%, 55.7%)
CIE-LABlab(14.97, 37.86, -51.67)
CIE-LCHlch(14.97, 64.06, 306.23°)
OKLaboklab(28.41% 0.0242 -0.1492)
OKLCHoklch(28.41% 0.151 279.2)
XYZxyz(3.8247, 1.9026, 15.7853)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221071 #5F7110
analogous
#102E71 #221071 #521071
triadic
#221071 #712210 #107122
tetradic
#221071 #71102E #5F7110 #107152
square
#221071 #71102E #5F7110 #107152
split-complementary
#221071 #715210 #2E7110
monochromatic
#08041B #12083B #221071 #3218A7 #421FDC

Accessibility & contrast

On white

15.21
#221071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#221071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221071
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221071#FFFFFF#000000##FFFFFF
##2210711.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.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: #221071;
/* rgb */ color: rgb(34, 16, 113);
/* oklch */ color: oklch(28.4% 0.151 279.2);
Tailwind
colors: {
  custom: {
    50: '#6b529b',
    500: '#221071',
    950: '#000000',
  },
}
SCSS
$custom: #221071;
$custom-light: #6b529b;
$custom-dark: #000000;
JSON
{
  "hex": "#221071",
  "rgb": {
    "r": 34,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 251.134,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28406,
    "c": 0.15115,
    "h": 279.2
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#221071
secondary
#93A934
accent
#F236CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #221071

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

Preview Lab → · Contrast checker → · Palette generator →

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