#71228B#71228B

#71228B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.171 H 316.2°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#71228B
RGBrgb(113, 34, 139)
HSLhsl(285, 61%, 34%)
HSVhsv(285, 76%, 55%)
CMYKcmyk(18.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(30.69, 49.89, -42.05)
CIE-LCHlch(30.69, 65.24, 319.87°)
OKLaboklab(42.46% 0.1236 -0.1184)
OKLCHoklch(42.46% 0.171 316.2)
XYZxyz(12.0416, 6.5193, 25.0452)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#71228B #3C8B22
analogous
#3D228B #71228B #8B2271
triadic
#71228B #8B7122 #228B71
tetradic
#71228B #8B3D22 #3C8B22 #22718B
square
#71228B #8B3D22 #3C8B22 #22718B
split-complementary
#71228B #718B22 #228B3D
monochromatic
#210A29 #49165A #71228B #992EBC #B553D5

Accessibility & contrast

On white

9.12
#71228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #71228B
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##71228B#FFFFFF#000000##FFFFFF
##71228B1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#214A89
Tritanopia (blue-blind)
#6F3855
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #71228b;
/* rgb */ color: rgb(113, 34, 139);
/* oklch */ color: oklch(42.5% 0.171 316.2);
Tailwind
colors: {
  custom: {
    50: '#9d66ad',
    500: '#71228b',
    950: '#000000',
  },
}
SCSS
$custom: #71228b;
$custom-light: #9d66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#71228b",
  "rgb": {
    "r": 113,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 285.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42458,
    "c": 0.17118,
    "h": 316.2
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#71228B
secondary
#6AB850
accent
#E4446C
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #71228B

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

Preview Lab → · Contrast checker → · Palette generator →

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