#71228A#71228A

#71228A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.170 H 316.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#71228A
RGBrgb(113, 34, 138)
HSLhsl(286, 60%, 34%)
HSVhsv(286, 75%, 54%)
CMYKcmyk(18.1%, 75.4%, 0%, 45.9%)
CIE-LABlab(30.62, 49.68, -41.54)
CIE-LCHlch(30.62, 64.76, 320.10°)
OKLaboklab(42.39% 0.1238 -0.1169)
OKLCHoklch(42.39% 0.17 316.6)
XYZxyz(11.9688, 6.4902, 24.6621)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#71228A #3B8A22
analogous
#3D228A #71228A #8A226F
triadic
#71228A #8A7122 #228A71
tetradic
#71228A #8A3D22 #3B8A22 #226F8A
square
#71228A #8A3D22 #3B8A22 #226F8A
split-complementary
#71228A #6F8A22 #228A3D
monochromatic
#210A28 #491659 #71228A #992EBB #B552D4

Accessibility & contrast

On white

9.14
#71228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#71228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #71228A
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##71228A#FFFFFF#000000##FFFFFF
##71228A1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#234A88
Tritanopia (blue-blind)
#703854
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #71228a;
/* rgb */ color: rgb(113, 34, 138);
/* oklch */ color: oklch(42.4% 0.170 316.6);
Tailwind
colors: {
  custom: {
    50: '#9d66ad',
    500: '#71228a',
    950: '#000000',
  },
}
SCSS
$custom: #71228a;
$custom-light: #9d66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#71228a",
  "rgb": {
    "r": 113,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 285.577,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42387,
    "c": 0.17024,
    "h": 316.6
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#71228A
secondary
#69B850
accent
#E4446B
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #71228A

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

Preview Lab → · Contrast checker → · Palette generator →

#71228A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva